Skip to content

Commit 9ff3ea5

Browse files
Jack-Khuufacebook-github-bot
authored andcommitted
Moving bento_deps lib under exir/fb
Summary: Bento_deps shouldn't be exposed to OSS, this diff moves the lib definition to exir/fb Call sites: https://fburl.com/code/98ck51i2 Reviewed By: JacobSzwejbka Differential Revision: D47451567 fbshipit-source-id: 274ed36c5cd78db3d50f6d31326d20235738f0c0
1 parent 515b223 commit 9ff3ea5

File tree

4 files changed

+22
-27
lines changed

4 files changed

+22
-27
lines changed

exir/TARGETS

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -147,23 +147,6 @@ python_library(
147147
],
148148
)
149149

150-
# Please don't add "//executorch/pybindings:portable" here, runtime lib should be added separately.
151-
python_library(
152-
name = "bento_deps",
153-
deps = [
154-
":lib",
155-
"//aibench/api:aibench_api",
156-
"//executorch/backends:backend_lib",
157-
"//executorch/backends/test:example_backends",
158-
"//executorch/bundled_program:core",
159-
"//executorch/exir/scripts:lib",
160-
"//executorch/kernels/portable:custom_ops_generated_lib",
161-
"//executorch/kernels/quantized:custom_ops_generated_lib",
162-
"//executorch/profiler:parse_profiler_library",
163-
"//executorch/sdk:lib",
164-
],
165-
)
166-
167150
python_library(
168151
name = "memory_planning",
169152
srcs = [

exir/fb/TARGETS

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2+
3+
oncall("executorch")
4+
5+
# Please don't add "//executorch/pybindings:portable" here, runtime lib should be added separately.
6+
python_library(
7+
name = "bento_deps",
8+
deps = [
9+
"//aibench/api:aibench_api",
10+
"//executorch/backends:backend_lib",
11+
"//executorch/backends/test:example_backends",
12+
"//executorch/bundled_program:core",
13+
"//executorch/exir:lib",
14+
"//executorch/exir/scripts:lib",
15+
"//executorch/kernels/portable:custom_ops_generated_lib",
16+
"//executorch/kernels/quantized:custom_ops_generated_lib",
17+
"//executorch/profiler:parse_profiler_library",
18+
"//executorch/sdk:lib",
19+
],
20+
)

exir/targets.bzl renamed to exir/fb/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("//bento:buck_macros.bzl", "bento_kernel")
22

33
executorch_bento_kernels_base_deps = [
4-
"//executorch/exir:bento_deps",
4+
"//executorch/exir/fb:bento_deps",
55
"//pye/lib:eager_model_base",
66
]
77

profiler/TARGETS

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ python_library(
1212
srcs = [
1313
"parse_profiler_results.py",
1414
],
15-
visibility = [
16-
"fbcode//aibench/...",
17-
"fbcode//on_device_ai/Assistant/Jarvis/...",
18-
"fbsource//xplat/on_device_ai/Assistant/Jarvis/...",
19-
"//executorch/exir:bento_deps",
20-
"//executorch/profiler/test/...",
21-
"//executorch/test/end2end/...",
22-
"//pye/lib/...",
23-
],
15+
visibility = ["PUBLIC"],
2416
deps = [
2517
"fbsource//third-party/pypi/prettytable:prettytable",
2618
"//executorch/exir:schema",

0 commit comments

Comments
 (0)