TensorFlow 基础

X 和 y 的建立过程中少了一层中括号。应该是下面的写法:

X = tf.constant ([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
y = tf.constant ([[10.0], [20.0]])