Hi,
I’m new to pytorch, and I have a problem here:
Suppose I have a tensor a with shape (seq_len, batch_size, feature_size), and another tensor b with shape (batch_size, feature_size). I want to product tensor a and b, so that I can obtain a tensor c with shape (seq_len, batch_size). The entry (i,j) to tensor c is the inner product of a[i, j, :] and b[j, :].
Is there any convenient way to calculate this?
Thanks