TensorFlow2.0筆記 張量的創建

創建張量: 將list容器內的類型數據轉化爲張量: a = tf.constant( [1, 2, 3] ) a = tf.variable( [1, 2, 3] ) a = tf.convert_to_tensor( [1, 2, 3] )    將numpy.array容器內的數據轉化成張量: a = tf.constant( np.array[1, 2, 3] ) a = tf.variab
相關文章
相關標籤/搜索