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 ATen Fallback for BUILD_CAFFE2=0 for ONNX-only ops (#88504) #90104

Merged

Conversation

izaitsevfb
Copy link
Contributor

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

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 3, 2022

🔗 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 Failures

As of commit 3d75c1b:

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 3, 2022
Copy link
Collaborator

@thiagocrepaldi thiagocrepaldi left a 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

test/onnx/test_pytorch_onnx_no_runtime.py Show resolved Hide resolved
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)
@izaitsevfb izaitsevfb force-pushed the release-1.13-cherry-pick-88504 branch from d120586 to e76cb2f Compare December 6, 2022 00:49
Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
@atalman
Copy link
Contributor

atalman commented Dec 7, 2022

cc @thiagocrepaldi the tests is still failing even after the changes

@thiagocrepaldi
Copy link
Collaborator

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>
@atalman atalman added ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/binaries_conda Trigger binary build and upload jobs for conda on the PR ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR ciflow/binaries_libtorch Trigger binary build and upload jobs for libtorch on the PR labels Dec 7, 2022
Copy link
Collaborator

@thiagocrepaldi thiagocrepaldi left a 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!

@atalman atalman merged commit a4d16e0 into pytorch:release/1.13 Dec 7, 2022
@izaitsevfb izaitsevfb deleted the release-1.13-cherry-pick-88504 branch December 7, 2022 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/binaries_conda Trigger binary build and upload jobs for conda on the PR ciflow/binaries_libtorch Trigger binary build and upload jobs for libtorch on the PR ciflow/binaries_wheel Trigger binary build and upload jobs for wheel on the PR ciflow/binaries Trigger all binary build and upload jobs on the PR 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

3 participants