original_docstring: Map MXNet's slice_axis operator attributes to onnx's Slice operator
      and return the created node.
      
docstring: Map MXNet's slice_axis operator attributes to onnx's Slice operator
  and return the created node.
docstring_tokens: Map MXNet ' s slice_axis operator attributes to onnx ' s Slice operator and return the created node .
code: def convert_slice_axis(node, **kwargs):
      """Map MXNet's slice_axis operator attributes to onnx's Slice operator
      and return the created node.
      """
      onnx = import_onnx_modules()
      name = node["name"]
      proc_nodes = kwargs["proc_nodes"]
      inputs = node["inputs"]
      axes = int(node["attrs"]["axis"])
      starts = int(node["attrs"]["begin"])
      if node["attrs"]["end"] == 'None':
          raise ValueError("Slice: ONNX doesnt't support 'None' in 'end' attribute")
      else:
          ends = int(node["attrs"]["end"])
  
      input_node_id = kwargs["index_lookup"][inputs[0][0]]
      input_node = proc_nodes[input_node_id].name
  
      node = onnx.helper.make_node(
          "Slice",
          [input_node],
          [name],
          axes=[axes],
          starts=[starts],
          ends=[ends],
          name=name,
      )
      return [node]
code_tokens: def convert_slice_axis ( node , ** kwargs ) : onnx = import_onnx_modules ( ) name = node [ "name" ] proc_nodes = kwargs [ "proc_nodes" ] inputs = node [ "inputs" ] axes = int ( node [ "attrs" ] [ "axis" ] ) starts = int ( node [ "attrs" ] [ "begin" ] ) if node [ "attrs" ] [ "end" ] == 'None' : raise ValueError ( "Slice: ONNX doesnt't support 'None' in 'end' attribute" ) else : ends = int ( node [ "attrs" ] [ "end" ] ) input_node_id = kwargs [ "index_lookup" ] [ inputs [ 0 ] [ 0 ] ] input_node = proc_nodes [ input_node_id ] . name node = onnx . helper . make_node ( "Slice" , [ input_node ] , [ name ] , axes = [ axes ] , starts = [ starts ] , ends = [ ends ] , name = name , ) return [ node ]
short_docstring: Map MXNet's slice_axis operator attributes to onnx's Slice operator
  and return the created node.
short_docstring_tokens: Map MXNet ' s slice_axis operator attributes to onnx ' s Slice operator and return the created node .
comment: """Map MXNet's slice_axis operator attributes to onnx's Slice operator
      and return the created node.
      """