Still getting error in this code.
Can you please tell the reason?
loss = nn.MSELoss()
input = torch.autograd.Variable(torch.randn((3,5)), requires_grad=True)
target = torch.randn(3, 5)
output = loss(input, target)
output.backward()