Dot product of tensor vector and scalar

How to get the dot product of 1d and 2d tensors?
When I do I get:

RuntimeError: inconsistent tensor size, expected tensor [2 x 1] and src [1] to have the same number of elements, but got 2 and 1 elements respectively

Would work?

Yes, Thank you! :slight_smile: