我有2个三维张量A的形状(batch_size,dim1,dim2)和B的大小(batch_size,dim2,dim3).我想执行以下计算:for i in range(batch_size):我尝试了C = tf.matmul(A,B),但得到了错误:
tensorflow.python.framework.err
例如:# Traceback (most recent call last):# ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature(size 2 is different from 3)
请注意:我知道什么是错误和