numpy.matmul in Theano
问题 TL;DR I want to replicate the functionality of numpy.matmul in theano . What's the best way to do this? Too Short; Didn't Understand Looking at theano.tensor.dot and theano.tensor.tensordot , I'm not seeing an easy way to do a straightforward batch matrix multiplication. i.e. treat the last two dimensions of N dimensional tensors as matrices, and multiply them. Do I need to resort to some goofy usage of theano.tensor.batched_dot ? Or *shudder* loop them myself without broadcasting!? 回答1: The