mindspore.load_mindir
- mindspore.load_mindir(file_name)[source]
load protobuf file.
- Parameters
file_name (str) – File name.
- Returns
ModelProto, mindir proto object.
- Raises
ValueError – The file does not exist or the file name format is incorrect.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore as ms >>> md = ms.load_mindir("test.mindir")