3D tensor * 2D tensor dot in Torch
<p>In Theano, when I have a 3D tensor <code>x</code> with shape [A,B,C] and a 2D tensor <code>y</code> with shape [C,D], then <code>theano.tensor.dot(x, y)</code> returns a 3D tensor with shape [A,B,D].</p>

<p>What would be the equivalent operation in Torch? <code>torch.dot</code> doesn't seem to do that, and <code>x * y</code> and <code>torch.mm</code> complain that they want a 2D tensor for both arguments, and <code>torch.bmm</code> wants 3D tensors for both arguments.</p>