megengine.core.tensor.megbrain_graph.load_graph¶
- load_graph(fpath)[源代码]¶
Load a serialized computing graph from file.
- 参数
fpath – Path or Handle of the input file
- 返回类型
CompGraphLoadResult
- 返回
An instance of namedtuple
CompGraphLoadResult
, whose fields are:graph
loaded CompGraphoutput_vars_dict
A Python dict, mapping name to output SymbolVaroutput_vars_list
A Python list, containing output vars in the order passed to serialize_comp_graph_to_file