class_docstr: Convert a pytorch model to nni ir along with input/output shape info.
  Based ir acquired through ``torch.jit.script``
  and shape info acquired through ``torch.jit.trace``.
  
  .. warning::
  
      Known issues:
  
      1. ``InputChoice`` and ``ValueChoice`` not supported yet.
      2. Currently random inputs are fed while tracing layerchoice.
         If forward path of candidates depends on input data, then wrong path will be traced.
         This will result in incomplete shape info.
code: def _initialize_parameters(self, ir_model: GraphModelSpace):
      for ir_node in ir_model.get_nodes():
          if ir_node.operation.parameters is None:
              ir_node.operation.parameters = {}
          ir_node.operation.attributes.setdefault("input_shape", [])
          ir_node.operation.attributes.setdefault("output_shape", [])
  
imports: import re
  import torch
  from nni.nas.space.graph import Graph, GraphModelSpace, Node, Cell, Operation
  from nni.nas.nn.pytorch import InputChoice, MutationAnchor, LayerChoice, MutableModule, Repeat
  from nni.nas.utils import get_init_parameters_or_fail, get_importable_name
  from .op_types import MODULE_EXCEPT_LIST, OpTypeName
  from .utils import _convert_name, build_full_name, _without_shape_info, _extract_info_from_trace_node, get_full_name_by_scope_name, is_layerchoice_node, match_node, build_cand_name, build_python_name
label_desc: Use image node_id 2 for calling the GraphConverterWithShape obj's underlying member method code with example usage: obj._initialize_parameters(ir_model) without return types