class_docstr: A helper class for handling Relay expression copying from pb2.GraphProto.
  Definition: https://github.com/pytorch/pytorch/blob/master/caffe2/proto/caffe2.proto
class_docstr_tok: ["A","helper","class","for","handling","Relay","expression","copying","from","pb2.GraphProto",".","Definition",":","https",":","\/\/github.com\/pytorch\/pytorch\/blob\/master\/caffe2\/proto\/caffe2.proto"]
docstr: Convert from Caffe2 operator to Relay operator.
  The converter must specify conversions explicitly for incompatible name, and
  apply handlers to operator attributes.
  
  Parameters
  ----------
  op_type : str
      Operator name, such as Convolution, FullyConnected
  inputs : list of tvm.relay.function.Function
      List of input inputs.
  args : dict
      Dict of operator attributes
  identity_list : list
      List of operators that don't require conversion
  convert_map : dict
      Dict of name : callable, where name is the op's name that
      require conversion to relay, callable are functions which
      take args and return (new_op_type, new_args)
  
  Returns
  -------
  func : tvm.relay.function.Function
      Converted relay function
docstr_tok: ["Convert","from","Caffe2","operator","to","Relay","operator",".","The","converter","must","specify","conversions","explicitly","for","incompatible","name",",","and","apply","handlers","to","operator","attributes",".","Parameters","--","--","--","--","--","op_type",":","str","Operator","name",",","such","as","Convolution",",","FullyConnected","inputs",":","list","of","tvm.relay.function.Function","List","of","input","inputs",".","args",":","dict","Dict","of","operator","attributes","identity_list",":","list","List","of","operators","that","do","n't","require","conversion","convert_map",":","dict","Dict","of","name",":","callable",",","where","name","is","the","op","'s","name","that","require","conversion","to","relay",",","callable","are","functions","which","take","args","and","return","(","new_op_type",",","new_args",")","Returns","--","--","--","-","func",":","tvm.relay.function.Function","Converted","relay","function"]
code: def _convert_operator(
      self, op_type, inputs, args, identity_list=None, convert_map=None
  ):
      """Convert from Caffe2 operator to Relay operator.
      The converter must specify conversions explicitly for incompatible name, and
      apply handlers to operator attributes.
  
      Parameters
      ----------
      op_type : str
          Operator name, such as Convolution, FullyConnected
      inputs : list of tvm.relay.function.Function
          List of input inputs.
      args : dict
          Dict of operator attributes
      identity_list : list
          List of operators that don't require conversion
      convert_map : dict
          Dict of name : callable, where name is the op's name that
          require conversion to relay, callable are functions which
          take args and return (new_op_type, new_args)
  
      Returns
      -------
      func : tvm.relay.function.Function
          Converted relay function
      """
      identity_list = identity_list if identity_list else _identity_list
      convert_map = convert_map if convert_map else _get_convert_map()
      if op_type in identity_list:
          func = get_relay_op(op_type)(*inputs, **args)
      elif op_type in convert_map:
          # Add a sanitizing step to convert all byte strings in args to strings
          func = convert_map[op_type](inputs, args, self._params)
      else:
          raise tvm.error.OpNotImplemented(
              f"Operator {op_type} is not supported in frontend Caffe2."
          )
      return func
  
imports: import tvm
  from tvm.ir import IRModule
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from ..None import op
  from ...None import nd
  from .common import AttrCvt, Renamer
  from .common import get_relay_op, new_var, infer_channels
label_desc: Use image node_id 6 for calling the Caffe2NetDef obj's underlying member method code with example usage: obj._convert_operator(op_type, inputs, args, identity_list, convert_map) and returns: func