original_docstring: convert nnvm graph to hardware supported graph
docstring: convert nnvm graph to hardware supported graph
docstring_tokens: convert nnvm graph to hardware supported graph
code: def convert(graph, shape_dict, layout):
      """convert nnvm graph to hardware supported graph"""
      _parse_inputs(graph)
  
      _parse_op(graph)
  
      _remove_null_op_inputs(graph, shape_dict)
  
      hwgraph = _fuse_ops(graph, shape_dict, layout)
  
      hwgraph = _infer_shape(hwgraph)
  
      _parse_shape_to_nchw(hwgraph, shape_dict, layout)
  
      #print(hwgraph)
  
      return hwgraph
code_tokens: def convert ( graph , shape_dict , layout ) : _parse_inputs ( graph ) _parse_op ( graph ) _remove_null_op_inputs ( graph , shape_dict ) hwgraph = _fuse_ops ( graph , shape_dict , layout ) hwgraph = _infer_shape ( hwgraph ) _parse_shape_to_nchw ( hwgraph , shape_dict , layout ) return hwgraph
short_docstring: convert nnvm graph to hardware supported graph
short_docstring_tokens: convert nnvm graph to hardware supported graph
comment: """convert nnvm graph to hardware supported graph"""$SEP$#print(hwgraph)