Theano matrix multiplication of 2d matrix to give 3d matrix Theano matrix multiplication of 2d matrix to give 3d matrix numpy numpy

Theano matrix multiplication of 2d matrix to give 3d matrix


As per @Divakar s comment, change it to

x[:,:,None] * y[:,None,:]

Just posting it as an answer so that people know there's an answer to this.