【发布时间】:2017-04-18 22:40:21
【问题描述】:
我有一个形状为 (3, 4, 5) 的 tensor3 和另一个形状为 (3, 4, 7, 5) 的 tensor4。 在 numpy 中,
result = np.einsum("ijk, ijmk->ijm", tensor3, tensor4)
print result.shape
(3, 4, 7)
但是在 theano 中,该怎么做呢。
【问题讨论】:
标签: python numpy deep-learning theano numpy-einsum