x = torch.linspace(-5,5,200), size [200]
y=torch.linspace(x1,x2) returns a one-dimensional tensor of size 100 equally spaced points between x1 and x2. y=torch.linspace(x1,x2,n) returns a one-dimensional tensor of n equally spaced points between x1 and x2.
torch.dot() can only work for 1 dimension tensor. http://pytorch.org/docs/master/torch.html https://github.com/pytorch/pytorch/issues/2313