-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
core runtimeissues related to core runtimeissues related to core runtimefeature requestrequest for unsupported feature or enhancementrequest for unsupported feature or enhancement
Milestone
Description
Describe the issue
The recently released onnx version 1.14.0 introduced the intermediate representation (IR) version 9 (see here).
This version should be supported by onnxruntime. Currently, this error is raised:
Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from ... failed: .../onnxruntime/core/graph/model.cc:146 onnxruntime::Model::Model Unsupported model IR version: 9, max supported IR version: 8
To reproduce
Taken from this issue which is not about supporting IR version 9 but exposing which IR versions are supported in the public onnxruntime api:
import onnxruntime
from onnxruntime.datasets import get_example
import onnx
example = get_example("sigmoid.onnx") # any ONNX model
model = onnx.load(example)
model.ir_version = 9 # unsupported ONNX IR version
onnx.save(model, "test.onnx")
onnxruntime.InferenceSession("test.onnx")Urgency
No response
Platform
Linux
OS Version
Ubunt 20.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.14.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
folkien and shizhouxing
Metadata
Metadata
Assignees
Labels
core runtimeissues related to core runtimeissues related to core runtimefeature requestrequest for unsupported feature or enhancementrequest for unsupported feature or enhancement