def nParams(self):
    """Get the number of parameters of this module.
Example::

    # returns 9, because 6 (2*3) for weight, and 3 for bias
    nn.Linear(2, 3).nParams
"""
    return sum([p.numel() for p in self.parameters()])