Ynjxsjmh:

x1 = Variable(torch.Tensor([3]), requires_grad=True)
x2 = Variable(torch.Tensor([5]), requires_grad=True)



Doesn’t it failed because you’re trying to mul 1 tensor of size 3 with another of size 5? they need to be the same shape in order for mul to work?