Solved by albanD in post #4 
              
              
                The requires_grad_() call is not retro-active. You need to set the requires_grad field before you do computetation with the Tensor. 
In this case, before you evaluate the model.