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","."]
docstr: Freeze all params for inference.
docstr_tok: ["Freeze","all","params","for","inference","."]
code: def freeze(self) -> None:
      r"""
      Freeze all params for inference.
      """
      for param in self.parameters():
          param.requires_grad = False
  
      self.eval()
  
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 4 for calling the NeuralModule obj's underlying member method code with example usage: obj.freeze() without return types