class_docstr: Context of converter
  
  This context shares names during exporting.
  
  Attributes:
      name_list (dict): list of being exported as ONNX node name with pinned
          or not, keyed by instance ID. When the target variable is
          ``chainer.Variable`` or ``chainer.Parameter``, instance ID of
          ``ndarray`` held by the variable is also put as key, because some
          functions like ``F.where`` internally unwrap variable.
class_docstr_tok: ["Context","of","converter","This","context","shares","names","during","exporting",".","Attributes",":","name_list","(","dict",")",":","list","of","being","exported","as","ONNX","node","name","with","pinned","or","not",",","keyed","by","instance","ID",".","When","the","target","variable","is","``","chainer.Variable","``","or","``","chainer.Parameter","``",",","instance","ID","of","``","ndarray","``","held","by","the","variable","is","also","put","as","key",",","because","some","functions","like","``","F.where","``","internally","unwrap","variable","."]
code: def __init__(self, model):
      self.name_list = dict()
      self.parameters = []
      self.constants = []
      self.implicit_inputs = (
          dict()
      )  # inputs which not connect to output
      namedlink = {n: l for n, l in model.namedlinks()}
      self.param_to_link = {}
      for name, param in model.namedparams():
          owned_link_name = name[: name.rindex("/")]
          if owned_link_name in namedlink:
              onnx_owned_link_name = onnx_helper.cleanse_param_name(
                  owned_link_name
              )
              self.param_to_link[id(param)] = (
                  onnx_owned_link_name,
                  namedlink[owned_link_name],
              )
          onnx_name = onnx_helper.cleanse_param_name(name)
          self.set_name(param, onnx_name)
  
file_path: chainer/onnx_chainer/context.py
imports: import chainer
  import onnx
  from onnx import numpy_helper
  from onnx_chainer import onnx_helper
label_desc: Use image node_id 1 to create a new Context object from inherited base classes: object with example: obj = Context(model)