http://pytorch.org/tutorials/beginner/pytorch_with_examples.html#pytorch-nn
In the above, I see the following code which sets requires_grad=False. Since the default of requires_grad
should be False, I am not sure why requires_grad is specified explicitly. Could anybody confirm?
x = Variable(torch.randn(N, D_in))
y = Variable(torch.randn(N, D_out), requires_grad=False)