-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Back out "Revert D29687143: [3/N] Nnapi Backend Delegate Preprocess: Basic OSS Test" #61878
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
Conversation
…process: Basic OSS Test" Summary: Using this PR to test CI tests in #61787, since I'm also trying to learn how to debug by rerunning jobs with SSH. Test Plan: Reviewers: Subscribers: myuan Tasks: Tags: [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 96351c4 (more details on the Dr. CI page and at hud.pytorch.org/pr/61878):
🕵️ 4 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Looks like it has the undefined python symbol issue with Mac build? |
@Amyh11325 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…elegate Preprocess: Basic OSS Test"" Summary: Using this PR to test CI tests in #61787, since I'm also trying to learn how to debug by rerunning jobs with SSH. Test Plan: To run NNAPI delegate unit tests: `python test/test_jit.py TestNnapiBackend` Reviewers: Subscribers: myuan Tasks: Tags: Differential Revision: [D29799895](https://our.internmc.facebook.com/intern/diff/D29799895) [ghstack-poisoned]
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.
LGTM. Thanks!
import torch._C | ||
from pathlib import Path | ||
|
||
from torch.testing._internal.common_utils import ( |
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.
Please fix the lint error before landing it.
) | ||
add_dependencies(torch_python gen_torch_version) | ||
|
||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
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.
Please submit a github issue and put the issue number in the comment.
…reprocess: Basic OSS Test"" Summary: Android NNAPI delegate library was moved from test/cpp/jit/CMakeLists.txt to torch/CMakeLists.txt. This resolves the issue the original PR had, where the NNAPI delegate library was added to builds without Python (when it depends on Python). Original PR #61594 Test Plan: Ran NNAPI delegate unit tests with `python test/test_jit.py TestNnapiBackend` Reviewers: Subscribers: myuan Tasks: Tags: Differential Revision: [D29799895](https://our.internmc.facebook.com/intern/diff/D29799895) [ghstack-poisoned]
@Amyh11325 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…reprocess: Basic OSS Test"" ### Summary: **CMakeLists.txt** Android NNAPI delegate library was moved from test/cpp/jit/CMakeLists.txt to torch/CMakeLists.txt. This resolves the issue the original PR had, where the NNAPI delegate library was added to builds without Python (when it depends on Python). **Original PR**: #61594 There's an error where the library cannot be built on MacOS. This problem existed in the original PR as well, but now an issue has been created: #61930 **test_backend_nnapi.py** Also changed the skip unit test headers so that it's a little cleaner. Now the unit tests are skipped if the Nnapi delegate library file is not found. Previously, the skip was based on the platform (only allowing Linux). ### Test Plan: Ran NNAPI delegate unit tests with `python test/test_jit.py TestNnapiBackend` Reviewers: Subscribers: myuan Tasks: Tags: Differential Revision: [D29799895](https://our.internmc.facebook.com/intern/diff/D29799895) [ghstack-poisoned]
@Amyh11325 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 a03466c. |
Stack from ghstack:
Summary:
CMakeLists.txt
Android NNAPI delegate library was moved from test/cpp/jit/CMakeLists.txt to torch/CMakeLists.txt. This resolves the issue the original PR had, where the NNAPI delegate library was added to builds without Python (when it depends on Python).
Original PR: #61594
There's an error where the library cannot be built on MacOS. This problem existed in the original PR as well, but now an issue has been created: #61930
test_backend_nnapi.py
Also changed the skip unit test headers so that it's a little cleaner. Now the unit tests are skipped if the Nnapi delegate library file is not found. Previously, the skip was based on the platform (only allowing Linux).
Test Plan:
Ran NNAPI delegate unit tests with
python test/test_jit.py TestNnapiBackend
Reviewers:
Subscribers:
myuan
Tasks:
Tags:
Differential Revision: D29799895