首页 > 代码库 > tensorflow1.0 official basement

tensorflow1.0 official basement


tensorflow 1.0 新的赋值形式。
W = tf.Variable([.3], tf.float32)
b = tf.Variable([-.3], tf.float32)
x = tf.placeholder(tf.float32)
linear_model = W * x + b

print (linear_model,{x:[1,2,3,4]})

tensorflow1.0 official basement