original_docstring: Map MXNet's max operator attributes to onnx's ReduceMax operator
      and return the created node.
      
docstring: Map MXNet's max operator attributes to onnx's ReduceMax operator
  and return the created node.
docstring_tokens: Map MXNet ' s max operator attributes to onnx ' s ReduceMax operator and return the created node .
code: def convert_max(node, **kwargs):
      """Map MXNet's max operator attributes to onnx's ReduceMax operator
      and return the created node.
      """
      onnx = import_onnx_modules()
      name = node["name"]
      proc_nodes = kwargs["proc_nodes"]
      inputs = node["inputs"]
  
      mx_axis = node.get("attrs", {}).get("axis", None)
      axes = convert_string_to_list(str(mx_axis)) if mx_axis is not None else None
  
      keepdims = int(node.get("attrs", {}).get("keepdims", 0))
  
      input_node_id = kwargs["index_lookup"][inputs[0][0]]
      input_node = proc_nodes[input_node_id].name
  
      if axes is not None:
          node = onnx.helper.make_node(
              'ReduceMax',
              inputs=[input_node],
              outputs=[name],
              axes=axes,
              keepdims=keepdims,
              name=name
          )
  
          return [node]
      else:
          node = onnx.helper.make_node(
              'ReduceMax',
              inputs=[input_node],
              outputs=[name],
              keepdims=keepdims,
              name=name
          )
  
          return [node]
code_tokens: def convert_max ( node , ** kwargs ) : onnx = import_onnx_modules ( ) name = node [ "name" ] proc_nodes = kwargs [ "proc_nodes" ] inputs = node [ "inputs" ] mx_axis = node . get ( "attrs" , { } ) . get ( "axis" , None ) axes = convert_string_to_list ( str ( mx_axis ) ) if mx_axis is not None else None keepdims = int ( node . get ( "attrs" , { } ) . get ( "keepdims" , 0 ) ) input_node_id = kwargs [ "index_lookup" ] [ inputs [ 0 ] [ 0 ] ] input_node = proc_nodes [ input_node_id ] . name if axes is not None : node = onnx . helper . make_node ( 'ReduceMax' , inputs = [ input_node ] , outputs = [ name ] , axes = axes , keepdims = keepdims , name = name ) return [ node ] else : node = onnx . helper . make_node ( 'ReduceMax' , inputs = [ input_node ] , outputs = [ name ] , keepdims = keepdims , name = name ) return [ node ]
short_docstring: Map MXNet's max operator attributes to onnx's ReduceMax operator
  and return the created node.
short_docstring_tokens: Map MXNet ' s max operator attributes to onnx ' s ReduceMax operator and return the created node .
comment: """Map MXNet's max operator attributes to onnx's ReduceMax operator
      and return the created node.
      """