Tensorflow中的tf.matmul和tf.batch_matmul有什么区别?

Tensorflow中的tf.matmul和tf.batch_matmul有什么区别?,tensorflow,Tensorflow,例如,如果我有以下数据: x = tf.placeholder("float", [None, n, n]) y = tf.placeholder("float", [None, n, n]) 这两种操作之间有什么区别吗 res = tf.matmul(x,y) res = tf.batch_matmul(x,y) tf.batch_matmul在版本0.12和更高版本中被弃用,而支持tf.matmul,因此在更高版本中没有差异。早期版本要求matmul使用秩2输入,但允许batch\u m

例如,如果我有以下数据:

x = tf.placeholder("float", [None, n, n])
y = tf.placeholder("float", [None, n, n])
这两种操作之间有什么区别吗

res = tf.matmul(x,y)
res = tf.batch_matmul(x,y)

tf.batch_matmul
在版本0.12和更高版本中被弃用,而支持
tf.matmul
,因此在更高版本中没有差异。早期版本要求
matmul
使用秩2输入,但允许
batch\u matmul