load¶ onnx_ir.load(path, format=None)¶ Load an ONNX model from a file. Parameters: path (str | PathLike) – The path to the ONNX file. format (str | None) – 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. Return type: Model