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
原文:http://www.cnblogs.com/alantechnique/p/6670512.html