如何从theano中的矩阵A * B * C和矩阵B * A * C得到矩阵A * A * C

时间:2016-11-15 07:58:31

标签: numpy theano

我想从矩阵A*A*C得到A*B*C矩阵,用B*A*C得到矩阵T.dot,或者在theano中得到A的矩阵},BC是尺寸。

有一种简单的方法吗?

1 个答案:

答案 0 :(得分:0)

您应该表述得更清楚,点积是可交换的,所以 a.b = b.a 且未为三个向量定义点积https://en.wikipedia.org/wiki/Dot_product#Properties)。我不知道您的意图是什么,但可能您在这里遇到了神经网络的局限。 神经网络基于加权总和,即点积是加权总和https://stats.stackexchange.com/questions/291680/can-any-one-explain-why-dot-product-is-used-in-neural-network-and-what-is-the-in),就像卷积是加权总和https://dsp.stackexchange.com/questions/4723/what-is-the-physical-meaning-of-the-convolution-of-two-signals),因此神经网络不易计算维度之间的简单简单乘法关系,即 xy ,比照https://stats.stackexchange.com/questions/217703/can-deep-neural-network-approximate-multiplication-function-without-normalizatio

相关问题