Skip to content

add targets for devtools.visualization #7735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backends/xnnpack/test/tester/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ runtime.python_library(
"//caffe2:torch",
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
"//executorch/backends/xnnpack/utils:xnnpack_utils",
"//executorch/devtools/visualization:visualization",
"//executorch/exir:lib",
"//executorch/exir/_serialize:lib",
"//executorch/exir/backend:backend_api",
Expand Down
32 changes: 32 additions & 0 deletions devtools/visualization/TARGETS
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

oncall("executorch")

runtime.python_library(
name = "visualization",
srcs = [
"__init__.py",
"visualization_utils.py",
],
visibility = [
"//executorch/...",
"@EXECUTORCH_CLIENTS",
],
deps = [
"//caffe2:torch",
"//executorch/exir:lib",
"//executorch/exir/_serialize:lib",
],
)

runtime.python_library(
name = "test",
srcs = [
"visualization_utils_test.py",
],
deps = [
":visualization",
]
)
Loading