Skip to content

Commit e00eaea

Browse files
authored
add targets for devtools.visualization
Differential Revision: D68308376 Pull Request resolved: #7735
1 parent 04547f8 commit e00eaea

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

backends/xnnpack/test/tester/TARGETS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ runtime.python_library(
1717
"//caffe2:torch",
1818
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
1919
"//executorch/backends/xnnpack/utils:xnnpack_utils",
20+
"//executorch/devtools/visualization:visualization",
2021
"//executorch/exir:lib",
2122
"//executorch/exir/_serialize:lib",
2223
"//executorch/exir/backend:backend_api",

devtools/visualization/TARGETS

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Any targets that should be shared between fbcode and xplat must be defined in
2+
# targets.bzl. This file can contain fbcode-only targets.
3+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
4+
5+
oncall("executorch")
6+
7+
runtime.python_library(
8+
name = "visualization",
9+
srcs = [
10+
"__init__.py",
11+
"visualization_utils.py",
12+
],
13+
visibility = [
14+
"//executorch/...",
15+
"@EXECUTORCH_CLIENTS",
16+
],
17+
deps = [
18+
"//caffe2:torch",
19+
"//executorch/exir:lib",
20+
"//executorch/exir/_serialize:lib",
21+
],
22+
)
23+
24+
runtime.python_library(
25+
name = "test",
26+
srcs = [
27+
"visualization_utils_test.py",
28+
],
29+
deps = [
30+
":visualization",
31+
]
32+
)

0 commit comments

Comments
 (0)