parameters: (med_node, med_graph)
docstring: add split to node which output size >=2
          :param med_node:
          :param med_graph:
          :return:
docstring_summary: add split to node which output size >=2
          :param med_node:
          :param med_graph:
          :return:
docstring_tokens: add split to node which output size > = 2 : param med_node : : param med_graph : : return :
function: def _auto_split(med_node, med_graph):
          """
          add split to node which output size >=2
          :param med_node:
          :param med_graph:
          :return:
          """
          output = med_node['output']
          #print 'output!!:', output
          if len(output) > 1:
              split_node = MedNodeUtil.new_med_node()
              split_node['name'] = med_node['name'] + '_split#' + str(len(output))
              split_node['ak_type'] = 'Split'
              split_node['type'] = 'Split'
              split_node['ak_attr']['split_num'] = len(output)
              # print ('-------------')
              # print ('split', split_node['name'])
              MedGraphUtil.append_node(med_node, split_node, graph=med_graph)
          pass
function_tokens: def _auto_split ( med_node , med_graph ) : output = med_node [ 'output' ] #print 'output!!:', output if len ( output ) > 1 : split_node = MedNodeUtil . new_med_node ( ) split_node [ 'name' ] = med_node [ 'name' ] + '_split#' + str ( len ( output ) ) split_node [ 'ak_type' ] = 'Split' split_node [ 'type' ] = 'Split' split_node [ 'ak_attr' ] [ 'split_num' ] = len ( output ) # print ('-------------') # print ('split', split_node['name']) MedGraphUtil . append_node ( med_node , split_node , graph = med_graph ) pass