Hi,
This is because all the parameters in the nn world are defined as nn.Parameters(). These are basically tensors that requires_grad and that work nice with nn tools. For example, for the nn.Linear layer, they are defined here 330.