[tensorflow] 多维矩阵的乘法

矩阵乘法本质上只能是两个二维的matrix进行叉乘,那么两个三维甚至四维的矩阵相乘是怎么作到的呢?python 好比:oop import tensorflow as tf a = tf.constant(1,2,3,4) b = tf.constant(1,2,4,6) c = tf.matmul(a,b) # c.shape == (1,2,3,6) 查看matmul的源码:ui @tf_ex
相关文章
相关标签/搜索