Skip to content

Onnx Intermediate Representation version 9 should be supported #15874

@fg91

Description

@fg91

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    core runtimeissues related to core runtimefeature requestrequest for unsupported feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions