Refactor NnapiCompilation registration into it's own file (#63183)
authorAmy He <ahe@fb.com>
Mon, 16 Aug 2021 22:42:14 +0000 (15:42 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 16 Aug 2021 22:45:26 +0000 (15:45 -0700)
commitb2069e7d01814d776c417042e28133c6b0e5082f
treeebf58e5b5de548582d829c05bb9582154d13710e
parentda36bbcd353d029ad93b2a22acb00c83d1bfe9a1
Refactor NnapiCompilation registration into it's own file (#63183)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63183

Move registration of NnapiCompilation into it's own file, so that `nnapi_bind.cpp` (which contains the implementation of NnapiCompilation) can be moved to `aten_cpu`, while maintaining the selectiveness for registration.

`nnapi_bind.cpp` is moved to `aten_cpu` in https://github.com/pytorch/pytorch/pull/62919. See the PR for more details on why it's needed.

ghstack-source-id: 135900318

Test Plan: Nnapi unit tests: `python test/test_nnapi.py`

Reviewed By: iseeyuan

Differential Revision: D30288708

fbshipit-source-id: 6ed5967fa6bd018075469d18e68f844d413cf265
aten/src/ATen/nnapi/nnapi_bind.cpp
aten/src/ATen/nnapi/nnapi_register.cpp [new file with mode: 0644]
tools/build_variables.bzl