original_docstring: Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator
      and return the created node.
      
docstring: Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator
  and return the created node.
docstring_tokens: Map MXNet ' s Activation operator attributes to onnx ' s Tanh / Relu operator and return the created node .
code: def convert_activation(node, **kwargs):
      """Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator
      and return the created node.
      """
      onnx = import_onnx_modules()
      name = node["name"]
  
      proc_nodes = kwargs["proc_nodes"]
      attrs = node["attrs"]
      act_type = attrs["act_type"]
  
      inputs = node["inputs"]
      input_node_idx = kwargs["index_lookup"][inputs[0][0]]
      input_node = proc_nodes[input_node_idx].output[0]
  
      # Creating a dictionary here, but if this titlecase pattern
      # mxnet_name.title()
      act_types = {
          "tanh": "Tanh",
          "relu": "Relu",
          "sigmoid": "Sigmoid",
          "softrelu": "Softplus",
          "softsign": "Softsign"
      }
  
      act_name = act_types.get(act_type)
      if act_name:
          node = onnx.helper.make_node(
              act_name,
              [input_node],
              [name],
              name=name
          )
      else:
          raise AttributeError(
              "Activation %s not implemented or recognized in the converter" % act_type
          )
  
      return [node]
code_tokens: def convert_activation ( node , ** kwargs ) : onnx = import_onnx_modules ( ) name = node [ "name" ] proc_nodes = kwargs [ "proc_nodes" ] attrs = node [ "attrs" ] act_type = attrs [ "act_type" ] inputs = node [ "inputs" ] input_node_idx = kwargs [ "index_lookup" ] [ inputs [ 0 ] [ 0 ] ] input_node = proc_nodes [ input_node_idx ] . output [ 0 ] act_types = { "tanh" : "Tanh" , "relu" : "Relu" , "sigmoid" : "Sigmoid" , "softrelu" : "Softplus" , "softsign" : "Softsign" } act_name = act_types . get ( act_type ) if act_name : node = onnx . helper . make_node ( act_name , [ input_node ] , [ name ] , name = name ) else : raise AttributeError ( "Activation %s not implemented or recognized in the converter" % act_type ) return [ node ]
short_docstring: Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator
  and return the created node.
short_docstring_tokens: Map MXNet ' s Activation operator attributes to onnx ' s Tanh / Relu operator and return the created node .
comment: """Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator
      and return the created node.
      """$SEP$# Creating a dictionary here, but if this titlecase pattern$SEP$# mxnet_name.title()