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

Fix ONNX operator_export_type on the new registry #87735 #90044

Merged

Conversation

izaitsevfb
Copy link
Contributor

A cherry-pick for the 1.13.1 release.

Original PR: #87735

Below is the description of the original PR.

Fixes #87313

Pytorch's ONNX pipelines do not run with BUILD_CAFFE2=0, so tests for operator_export_type==ONNX_ATEN or ONNX_ATEN_FALLBACK are not fully tested, which caused this regression to the core feature of ONNX exporter: ONNX ATen fallback.

This PR fixes this regression, but we discuss with Meta on how to use only BUILD_CAFFE2=0 builds instead of ``BUILD_CAFFE2=1`

Fixes pytorch#87313

Our ONNX pipelines do not run with BUILD_CAFFE2=0, so tests for operator_export_type ONNX_ATEN and ONNX_ATEN_FALLBACK will not be fully tested, allowing regressions to happen again.

We need to run the same set of tests for both BUILD_CAFFE2=0 and 1
Pull Request resolved: pytorch#87735
Approved by: https://github.com/AllenTiTaiWang, https://github.com/BowenBao

(cherry picked from commit 2aed670)
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 2, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/90044

Note: Links to docs will display an error until the docs builds have been completed.

❌ 4 Failures

As of commit 59451a4:

The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Dec 2, 2022
@thiagocrepaldi
Copy link
Collaborator

@izaitsevfb #88504 needs to be cherry-picked once this PR is merged to have the full fix

Thanks for landing this :)

@izaitsevfb izaitsevfb merged commit 642edcd into pytorch:release/1.13 Dec 3, 2022
@izaitsevfb izaitsevfb deleted the 1.13.1-cherry-pick-87735 branch December 3, 2022 02:38
@izaitsevfb
Copy link
Contributor Author

@izaitsevfb #88504 needs to be cherry-picked once this PR is merged to have the full fix

Thanks for landing this :)

Thank you for providing the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: onnx torch.onnx related changes that should show up in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants