-
Notifications
You must be signed in to change notification settings - Fork 23k
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
Add aten::softmax NNAPI converter #58539
Conversation
💊 CI failures summary and remediationsAs of commit fac0cf4 (more details on the Dr. CI page and at hud.pytorch.org/pr/58539):
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm: pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2 (1/1)Step: "Run tests" (full log | diagnosis details | 🔁 rerun) ❄️
|
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
for dim, size in enumerate(in_oper.shape): | ||
if size == 0: | ||
self.forward_operand_shape(out_id, dim, in_id, dim) |
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.
Do you think this is a common enough pattern to justify making it a helper function?
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.
I think so, I'll add a clean up task
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
Summary: Add support for aten::softmax op in the NNAPI model converter with flexible size Test Plan: pytest test/test_nnapi.py::TestNNAPI::test_softmax Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28531946](https://our.internmc.facebook.com/intern/diff/D28531946) [ghstack-poisoned]
@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This pull request has been merged in 14d604a. |
Stack from ghstack:
Summary:
Add support for aten::softmax op in the NNAPI model converter with
flexible size
Test Plan:
pytest test/test_nnapi.py::TestNNAPI::test_softmax
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D28531946