class_docstr: Hanging Parameter: a parameter dose not belong to a leaf Module.
  It has subordinate nn.modules and a nn.Parameter.
class_docstr_tok: ["Hanging","Parameter",":","a","parameter","dose","not","belong","to","a","leaf","Module",".","It","has","subordinate","nn.modules","and","a","nn.Parameter","."]
code: def __init__(self, checkpoint=False) -> None:
      super().__init__(checkpoint=checkpoint)
      self.proj1 = nn.Linear(4, 8)
      self.weight = nn.Parameter(torch.randn(8, 8))
      self.proj2 = nn.Linear(8, 4)
  
file_path: ColossalAI/tests/kit/model_zoo/custom/hanging_param_model.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  from ..registry import model_zoo
  from .base import CheckpointModule
label_desc: Use image node_id 1 to create a new HangingParamModule object from inherited base classes: CheckpointModule with example: obj = HangingParamModule(checkpoint)