I want to multiply two tensors, here is what I have got:
Atensor of shape(20, 96, 110)Btensor of shape(20, 16, 110)
The first index is for batch size.
What I want to do is essentially take each tensor from B - (20, 1, 110), for example, and with that, I want to multiply each A tensor (20, n, 110).
So the product will be at the end: tensor AB which shape is (20, 96 * 16, 110).
So I want to multiply each tensor from A by broadcasting with B.
Is there a method in PyTorch that does it?
torch.tensor(20, 96*16, 110)here 20 being the batch size - Ryan