Skip to content

Commit 4f25e8f

Browse files
JakeStevensfacebook-github-bot
authored andcommitted
Add test op alias to backend target (#20223)
Summary: The backend code now uses op alias, which lives in test code and was not a BUCK dependency. Add the proper deps Reviewed By: rascani Differential Revision: D108305486
1 parent 73f61cf commit 4f25e8f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

backends/nxp/BUCK

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ fbcode_target(_kind = runtime.python_library,
6666
srcs = glob(["backend/**/*.py"]),
6767
deps = [
6868
"fbsource//third-party/pypi/neutron_converter:neutron_converter",
69+
"//caffe2:torch",
70+
"//executorch/exir:lib",
71+
"//executorch/backends/nxp/tests:ops_aliases",
6972
],
7073
)
7174

backends/nxp/tests/BUCK

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ load("@fbcode_macros//build_defs:python_pytest.bzl", "python_pytest")
44

55
oncall("executorch")
66

7+
fbcode_target(_kind = runtime.python_library,
8+
name = "ops_aliases",
9+
srcs = [
10+
"ops_aliases.py",
11+
],
12+
deps = [
13+
"//caffe2:torch",
14+
"//executorch/exir:lib",
15+
],
16+
)
17+
718
fbcode_target(_kind = runtime.python_library,
819
name = "models",
920
srcs = [

0 commit comments

Comments
 (0)