class_docstr: Abstract class offering interface shared between all PyTorch Neural Modules.
class_docstr_tok: ["Abstract","class","offering","interface","shared","between","all","PyTorch","Neural","Modules","."]
code: def _num_weights(self):
      num: int = 0
      for p in self.parameters():
          if p.requires_grad:
              num += p.numel()
      return num
  
file_path: NeMo/nemo/core/classes/module.py
imports: from contextlib import contextmanager
  import torch
  from torch.nn import Module
  from nemo.core.classes.common import FileIO, Serialization, Typing
label_desc: Use image node_id 2 for calling the NeuralModule obj's underlying member method code with example usage: obj._num_weights() and returns: num