Ok,
This is weird.
Could you cleanup your code to do the following:

remove Variable as it is not needed anymore.
set requires_grad=True only for Tensor for which your want the .grad field to be populated.
Do not wrap things in nn.Parameter. This is onlyu needed if you are in an nn.Module and plan on calling mod.parameters() to get all the parameters.