Python API
count_parameters()
Returns the number of trainable parameters in a module.
module (nn.Module) – The module to count the parameters of.
The number of trainable parameters.
int