Solved by chenglu in post #2 
              
              
                nn.Parameter is a subclass of nn.Variable so most behaviors are the same. 
The most important difference is that if you use nn.Parameter in a nn.Module's constructor, it will be added into the modules parameters just like nn.Module object do. Here is an example: 
import torch

class MyModule(torch.n…