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

Support exporting to onnx for torch>=1.10 #1231

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xmfbit
Copy link

@xmfbit xmfbit commented May 2, 2022

From PyTorch >= 1.10.0, the argument enable_onnx_checker is ignored and will be removed in future versions, which will make the onnx exporting fail.

see https://pytorch.org/docs/1.10/onnx.html?highlight=torch%20onnx%20export#torch.onnx.export

I cannot find a solution to skip the check, so just catch the exception and do nothing but logging an error message. For future versions, the argument will be removed, so we'd better to pop it from the kwargs.

Signed-off-by: xmfbit <xmfbit@gmail.com>
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.

None yet

1 participant