pytorch
a03466cb - Back out "Revert D29687143: [3/N] Nnapi Backend Delegate Preprocess: Basic OSS Test" (#61878)

Commit
3 years ago
Back out "Revert D29687143: [3/N] Nnapi Backend Delegate Preprocess: Basic OSS Test" (#61878) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61878 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: https://github.com/pytorch/pytorch/pull/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: https://github.com/pytorch/pytorch/issues/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: To run NNAPI delegate unit tests: `python test/test_jit.py TestNnapiBackend` Imported from OSS Reviewed By: iseeyuan Differential Revision: D29799895 fbshipit-source-id: b69a767b5cde3814b0853cfbc84d61ab4155f619
Author
Parents
Loading