load¶
- onnx_ir.load(path: str | PathLike, format: str | None = None) Model ¶
Load an ONNX model from a file.
- Parameters:
path – The path to the ONNX file.
format – The format of the file (e.g. protobuf, textproto, json, etc.). If None, the format is inferred from the file extension.
- Returns:
The loaded model.