Skip to content

Limit package version of onnx #1579

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

Merged
merged 1 commit into from
May 26, 2025
Merged

Conversation

0x3878f
Copy link
Collaborator

@0x3878f 0x3878f commented May 23, 2025

限制onnx<=1.17.0,因为集成了polygraphy ,在进行常量折叠时会升级ir version为当前环境中onnx支持的最高版本,onnx>=1.18.0 时支持ir version 11, 而onnxruntime<=1.22.0时 最高支持ir version 10,会导致使用ORT推理失败,因此需要限制onnx<=1.17.0 .
如果必须使用onnx>=1.18.0 ,可以通过添加--optimize_tool=None选项跳过polygraphy

Copy link

paddle-bot bot commented May 23, 2025

Thanks for your contribution!

@0x3878f 0x3878f merged commit ca1c46e into PaddlePaddle:develop May 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant