Tensorflow2.0學習(1): Tensorflow1與Tensorflow2的簡單區別

實例:1 + 1/2 + 1/2^2 + 1/2^3 + … + 1/2^50 tensorflow1 導包,看版本 import tensorflow as tf print(tf.__version__) 定義變量 x = tf.Variable(0.) y = tf.Variable(1.) 定義計算圖 # x = x + y add_op = x.assign(x + y) # y = y
相關文章
相關標籤/搜索