Hello, I would like to multiply tensor t1 = torch.tensor([1, 2, 3, 4, 5]) and t2 = torch.tensor([1, 2, 1]) in order to get result similar like from 1D kernel application: [1 * 1 + 2 * 2 + 3 * 1, 2 * 1 + 3 * 2 + 4 * 1, 3 * 1 + 4 * 2 + 5 * 1]. Can you give me advice, how to compute this case without any for loop?
Thank you.