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, :].