. Tensor Operations

[1]:
12
import numpy as np 
import torch
[3]:
123
a=torch.tensor([1,2,3])
b=torch.tensor([3,4,5])
[4]:
1
a.dot(b)  # this will perform the dot roduct
Out[4]:
tensor(26)
[ ]:
1