Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Assertion false failed: No Adapter From Version $20 for GridSample #23112

Open
jikechao opened this issue Dec 15, 2024 · 1 comment
Labels
converter:dynamo issues related supporting the PyTorch Dynamo exporter converter related to ONNX converters

Comments

@jikechao
Copy link

Describe the issue

Converting the model opset version failed. By checking the document about GridSample, I found that opset 20 is a valid version for GridSample.

Traceback (most recent call last):
  File "test.py", line 247, in <module>
    combine_models_random(seed_model, donor_model, position_flag='random')
  File "test.py", line 221, in combine_models_random
    donor_model = onnx.version_converter.convert_version(donor_model, 16)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/onnx/version_converter.py", line 37, in convert_version
    converted_model_str = C.convert_version(model_str, target_version)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: /github/workspace/onnx/version_converter/BaseConverter.h:73: adapter_lookup: Assertion `false` failed: No Adapter From Version $20 for GridSample

To reproduce

import onnx
model = onnx.load("...")
new_model = onnx.version_converter.convert_version(model, 16)

Urgency

No response

Platform

Linux

OS Version

Ubuntu 20.04

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

latest-version

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@yuslepukhin yuslepukhin added converter related to ONNX converters converter:dynamo issues related supporting the PyTorch Dynamo exporter labels Dec 16, 2024
@gramalingam
Copy link
Contributor

Hi, do you have an example model to repro this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
converter:dynamo issues related supporting the PyTorch Dynamo exporter converter related to ONNX converters
Projects
None yet
Development

No branches or pull requests

3 participants