Solved by apsvieira in post #7 
              
              
                That indicates that you are using requires_grad=True for your target Variable as well, but that should be set to False, as the gradients will be computed w.r.t. the inputs.