megengine.utils.network.Network.load

classmethod Network.load(model_path, outspec=None)[源代码]

Loads a computing graph as a Network object.

参数
  • model_path (str) – file path of mge model.

  • outspec (Optional[List[str]]) – only load the subgraph with outspec as its endpoints.