tensorflow中的模型保存和加載的有關問題

開始學tensorflow的時候,模型的保存和加載是很方便和簡單,可是其中保存了一些什麼,卻不是特別清楚。 一、單獨保存張量時,無變量,模型保存時會報ValueError: No variables to save的錯誤。以下: a = tf.constant(102) b = tf.constant(2) c = tf.add(a, b) # val = tf.Variable(1.
相關文章
相關標籤/搜索