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
相关文章
相关标签/搜索