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","."]
docstr: Add a parameter array as an ONNX initializer.
  
  Returns:
      str: registered name.
docstr_tok: ["Add","a","parameter","array","as","an","ONNX","initializer",".","Returns",":","str",":","registered","name","."]
code: def add_param(self, array, name, use_original_name=False):
      """Add a parameter array as an ONNX initializer.
  
      Returns:
          str: registered name.
      """
      if use_original_name:
          onnx_name = name
      else:
          if not (name.startswith("/") or name.startswith("_")):
              name = "/" + name
          onnx_name = "{}_{}".format(
              onnx_helper.get_func_name(),
              onnx_helper.cleanse_param_name(name),
          )
      self.set_name(array, onnx_name)
      self.parameters.append(array)
      return 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 5 for calling the Context obj's underlying member method code with example usage: obj.add_param(array, name, use_original_name) and returns: onnx_name