original_docstring: Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator
      and return the created node.
      
docstring: Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator
  and return the created node.
docstring_tokens: Map MXNet ' s L2Normalization operator attributes to onnx ' s LpNormalization operator and return the created node .
code: def convert_l2normalization(node, **kwargs):
      """Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator
      and return the created node.
      """
      onnx = import_onnx_modules()
      name = node["name"]
      input_id = kwargs["index_lookup"][node["inputs"][0][0]]
      input_name = kwargs["proc_nodes"][input_id].name
      attrs = node["attrs"]
      mode = attrs.get("mode", "instance")
  
      if mode != "channel":
          raise AttributeError("ONNX currently supports channel mode only")
  
      l2norm_node = onnx.helper.make_node(
          "LpNormalization",
          [input_name],
          [name],
          axis=1,  # channel only
          name=name
      )
      return [l2norm_node]
code_tokens: def convert_l2normalization ( node , ** kwargs ) : onnx = import_onnx_modules ( ) name = node [ "name" ] input_id = kwargs [ "index_lookup" ] [ node [ "inputs" ] [ 0 ] [ 0 ] ] input_name = kwargs [ "proc_nodes" ] [ input_id ] . name attrs = node [ "attrs" ] mode = attrs . get ( "mode" , "instance" ) if mode != "channel" : raise AttributeError ( "ONNX currently supports channel mode only" ) l2norm_node = onnx . helper . make_node ( "LpNormalization" , [ input_name ] , [ name ] , axis = 1 , name = name ) return [ l2norm_node ]
short_docstring: Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator
  and return the created node.
short_docstring_tokens: Map MXNet ' s L2Normalization operator attributes to onnx ' s LpNormalization operator and return the created node .
comment: """Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator
      and return the created node.
      """$SEP$# channel only