Nothing Special   »   [go: up one dir, main page]

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

Add aten::softmax NNAPI converter #58539

Closed
wants to merge 12 commits into from

Conversation

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor
facebook-github-bot commented May 19, 2021

💊 CI failures summary and remediations

As of commit fac0cf4 (more details on the Dr. CI page and at hud.pytorch.org/pr/58539):



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2 (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun) ❄️

Jul 06 18:46:18 unknown file: Failure
Jul 06 18:46:18 frame #7: <unknown function> + 0x8ad185 (0x5595a6e46185 in build/bin/test_api)
Jul 06 18:46:18 frame #8: <unknown function> + 0x8ad435 (0x5595a6e46435 in build/bin/test_api)
Jul 06 18:46:18 frame #9: testing::internal::UnitTestImpl::RunAllTests() + 0xc1c (0x5595a6e4748c in build/bin/test_api)
Jul 06 18:46:18 frame #10: testing::UnitTest::Run() + 0x98 (0x5595a6e47758 in build/bin/test_api)
Jul 06 18:46:18 frame #11: main + 0xc8 (0x5595a67bd328 in build/bin/test_api)
Jul 06 18:46:18 frame #12: __libc_start_main + 0xe7 (0x7fafc1b17bf7 in /lib/x86_64-linux-gnu/libc.so.6)
Jul 06 18:46:18 frame #13: _start + 0x2a (0x5595a67f3a0a in build/bin/test_api)
Jul 06 18:46:18 " thrown in the test body.
Jul 06 18:46:18 [  FAILED  ] IntegrationTest.MNIST_CUDA (4 ms)
Jul 06 18:46:18 [ RUN      ] IntegrationTest.MNISTBatchNorm_CUDA
Jul 06 18:46:18 unknown file: Failure
Jul 06 18:46:18 C++ exception with description "Error opening images file at test/cpp/api/mnist/train-images-idx3-ubyte
Jul 06 18:46:18 Exception raised from read_images at /var/lib/jenkins/workspace/torch/csrc/api/src/data/datasets/mnist.cpp:67 (most recent call first):
Jul 06 18:46:18 frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x6b (0x7fafc22d8cfb in /var/lib/jenkins/workspace/build/lib/libc10.so)
Jul 06 18:46:18 frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xce (0x7fafc22d499e in /var/lib/jenkins/workspace/build/lib/libc10.so)
Jul 06 18:46:18 frame #2: <unknown function> + 0x41e2d02 (0x7fafd60e0d02 in /var/lib/jenkins/workspace/build/lib/libtorch_cpu.so)
Jul 06 18:46:18 frame #3: torch::data::datasets::MNIST::MNIST(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, torch::data::datasets::MNIST::Mode) + 0x46 (0x7fafd60e1da6 in /var/lib/jenkins/workspace/build/lib/libtorch_cpu.so)
Jul 06 18:46:18 frame #4: IntegrationTest_MNISTBatchNorm_CUDA_Test::TestBody() + 0x9d6 (0x5595a69be3d6 in build/bin/test_api)
Jul 06 18:46:18 frame #5: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) + 0x4a (0x5595a6e4f47a in build/bin/test_api)
Jul 06 18:46:18 frame #6: <unknown function> + 0x8acb75 (0x5595a6e45b75 in build/bin/test_api)
Jul 06 18:46:18 frame #7: <unknown function> + 0x8ad185 (0x5595a6e46185 in build/bin/test_api)

Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@axitkhurana
Copy link
Author

@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
Copy link
Author

@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
Copy link
Author

@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Akshit Khurana added 2 commits June 29, 2021 01:14
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 axitkhurana changed the title softmax Add aten::softmax NNAPI converter Jun 29, 2021
@axitkhurana
Copy link
Author

@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

1 similar comment
@axitkhurana
Copy link
Author

@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
Copy link
Author

@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
Copy link
Author

@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
Copy link
Author

@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Comment on lines +1143 to +1145
for dim, size in enumerate(in_oper.shape):
if size == 0:
self.forward_operand_shape(out_id, dim, in_id, dim)
Copy link
Contributor

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?

Copy link
Author
@axitkhurana axitkhurana Jun 30, 2021

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

Akshit Khurana added 3 commits June 30, 2021 12:30
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
Copy link
Author

@axitkhurana has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 14d604a.

@facebook-github-bot facebook-github-bot deleted the gh/axitkhurana/7/head branch July 11, 2021 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants