请问一下,有同学知道图里面画圈那个b他是(11)的矩阵但是tf.matmul(x,w)是(21)的矩阵。他们为啥能做加法运算.
import tensorflow as tf
x = [[1., 2., 3.], [3., 2., 1.]]
w = tf.Variable([[1],[2],[3]], dtype=tf.float32)
b = tf.Variable([3], dtype=tf.float32)
y = tf.matmul(x, w) + b
print(y)
他们为啥能做加法运算,是因为他们有啥特殊的地方吗?