Solved by albanD in post #4 
              
              
                When you call .backward(), it will populate the .grad field for all the leaf Tensor (such as nn.Parameter) that were used to compute your output.