-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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 ATen Fallback for BUILD_CAFFE2=0 for ONNX-only ops (#88504) #90104
Fix ATen Fallback for BUILD_CAFFE2=0 for ONNX-only ops (#88504) #90104
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/90104
Note: Links to docs will display an error until the docs builds have been completed. ❌ 7 FailuresAs of commit 3d75c1b: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FAILED test/onnx/test_pytorch_onnx_no_runtime.py - NameError: name 'common_quantization`
Other than that, looks good to me
Follow-up for pytorch#87735 Once again, because BUILD_CAFFE2=0 is not tested for ONNX exporter, one scenario slipped through. A use case where the model can be exported without aten fallback when operator_export_type=ONNX_ATEN_FALLBACK and BUILD_CAFFE2=0 A new unit test has been added, but it won't prevent regressions if BUILD_CAFFE2=0 is not executed on CI again Fixes pytorch#87313 Pull Request resolved: pytorch#88504 Approved by: https://github.com/justinchuby, https://github.com/BowenBao (cherry picked from commit 5f0783b)
d120586
to
e76cb2f
Compare
Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
cc @thiagocrepaldi the tests is still failing even after the changes |
This is the culprit: 2022-12-06T23:11:36.7836729Z File "/var/lib/jenkins/workspace/test/onnx/test_pytorch_onnx_no_runtime.py", line 961, in test_lower_graph_conv2d
2022-12-06T23:11:36.7837274Z data_numpy = np.random.rand(1, 3, 6, 6).astype(np.float32)
2022-12-06T23:11:36.7837758Z NameError: name 'np' is not defined |
Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All ONNX pipelines are now passing!
Thanks a lot for helping landing this!
Cherry-pick for 1.13.1 release. Original PR: #88504
Original description below:
Follow-up for #87735
Once again, because BUILD_CAFFE2=0 is not tested for ONNX exporter, one scenario slipped through. A use case where the model can be exported without aten fallback when operator_export_type=ONNX_ATEN_FALLBACK and BUILD_CAFFE2=0
A new unit test has been added, but it won't prevent regressions if BUILD_CAFFE2=0 is not executed on CI again
Fixes #87313
Pull Request resolved: #88504 Approved by: https://github.com/justinchuby, https://github.com/BowenBao
(cherry picked from commit 5f0783b)
Fixes #ISSUE_NUMBER