Skip to content
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
6 changes: 1 addition & 5 deletions .ci/scripts/unittest-buck2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ set -eux
# TODO: expand this to //...
# TODO: can't query cadence & vulkan backends
# TODO: can't query //kernels/prim_ops because of non-buckified stuff in OSS.
# TODO: Make //backends/arm tests use runtime wrapper so we can just query //backends/arm/...
buck2 query "//backends/apple/... + //backends/arm: + //backends/arm/debug/... + \
//backends/arm/operator_support/... + //backends/arm/operators/... + \
//backends/arm/_passes/... + //backends/arm/runtime/... + //backends/arm/tosa/... \
+ //backends/example/... + \
buck2 query "//backends/apple/... + //backends/example/... + \
//backends/mediatek/... + //backends/transforms/... + \
//backends/xnnpack/... + //configurations/... + //extension/flat_tensor: + \
//extension/llm/runner: + //kernels/aten/... + //kernels/optimized/... + \
Expand Down
21 changes: 18 additions & 3 deletions backends/arm/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ runtime.python_library(
"ethosu/partitioner.py"
],
deps = [
":arm_vela",
"//executorch/backends/arm/tosa:arm_partitioner",
":arm_partitioner",
]
)
runtime.python_library(
Expand All @@ -26,7 +25,7 @@ runtime.python_library(
"vgf/partitioner.py"
],
deps = [
"//executorch/backends/arm/tosa:arm_partitioner",
":arm_partitioner",
]
)
runtime.python_library(
Expand All @@ -51,6 +50,21 @@ runtime.python_library(
"//executorch/exir:lib",
],
)
runtime.python_library(
name = "arm_partitioner",
srcs = [
"tosa/backend.py",
"tosa/partitioner.py",
],
deps = [
":arm_backend",
":constants",
"//executorch/backends/arm/debug:schema",
"//executorch/backends/arm/operator_support:operator_support",
"//executorch/backends/arm/_passes:passes",
"//executorch/exir:lib",
],
)
runtime.python_library(
name = "arm_backend",
srcs = [
Expand All @@ -63,6 +77,7 @@ runtime.python_library(
"fbsource//third-party/tosa_tools/v1.00/serialization_lib/python/serializer:serializer",
"fbsource//third-party/tosa_tools/v0.80/serialization_lib/python/tosa:tosa",
"fbsource//third-party/tosa_tools/v1.00/serialization_lib/python/tosa:tosa",
":arm_vela",
":process_node",
"//executorch/backends/arm/operators:lib",
"//executorch/backends/arm/operators:node_visitor",
Expand Down
17 changes: 0 additions & 17 deletions backends/arm/tosa/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,3 @@ runtime.python_library(
":specification",
],
)

runtime.python_library(
name = "arm_partitioner",
srcs = [
"backend.py",
"partitioner.py",
],
deps = [
"//executorch/backends/arm:arm_backend",
"//executorch/backends/arm:constants",
"//executorch/backends/arm:process_node",
"//executorch/backends/arm/debug:schema",
"//executorch/backends/arm/operator_support:operator_support",
"//executorch/backends/arm/_passes:passes",
"//executorch/exir:lib",
],
)
1 change: 0 additions & 1 deletion devtools/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ oncall("executorch")
runtime.python_library(
name = "lib",
srcs = ["__init__.py"],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//executorch/devtools/bundled_program:core",
"//executorch/devtools/etrecord:etrecord",
Expand Down
12 changes: 0 additions & 12 deletions exir/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ runtime.python_library(
srcs = [
"tracer.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"fbsource//third-party/pypi/typing-extensions:typing-extensions",
":common",
Expand Down Expand Up @@ -47,15 +46,13 @@ runtime.python_library(
srcs = [
"scalar_type.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
)

runtime.python_library(
name = "schema",
srcs = [
"schema.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":scalar_type",
"//executorch/exir/backend:compile_spec_schema",
Expand All @@ -74,7 +71,6 @@ runtime.python_library(
srcs = [
"tensor.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":error",
":schema",
Expand All @@ -88,7 +84,6 @@ runtime.python_library(
srcs = [
"memory.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"fbsource//third-party/pypi/typing-extensions:typing-extensions",
":tensor",
Expand Down Expand Up @@ -116,7 +111,6 @@ runtime.python_library(
"delegate.py",
"delegate.pyi",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
],
Expand Down Expand Up @@ -146,7 +140,6 @@ runtime.python_library(
srcs = [
"__init__.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":tracer",
"//caffe2:torch",
Expand All @@ -162,7 +155,6 @@ runtime.python_library(
srcs = [
"memory_planning.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":control_flow",
":delegate",
Expand Down Expand Up @@ -221,7 +213,6 @@ runtime.python_library(
srcs = [
"print_program.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":error",
":schema",
Expand All @@ -234,15 +225,13 @@ runtime.python_library(
srcs = [
"dynamic_shape.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
)

runtime.python_library(
name = "pass_base",
srcs = [
"pass_base.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":delegate",
":error",
Expand All @@ -257,7 +246,6 @@ runtime.python_library(
srcs = [
"pass_manager.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"fbsource//third-party/pypi/typing-extensions:typing-extensions",
":error",
Expand Down
1 change: 0 additions & 1 deletion exir/dialects/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ runtime.python_library(
resources = {
"//executorch/exir/dialects/edge:edge_yaml": "edge.yaml",
},
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//caffe2/torchgen:torchgen",
Expand Down
1 change: 0 additions & 1 deletion exir/dialects/edge/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ runtime.python_library(
resources = {
":edge_yaml": "edge.yaml",
},
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"fbsource//third-party/pypi/ruamel-yaml:ruamel-yaml",
"fbsource//third-party/pypi/setuptools:setuptools",
Expand Down
12 changes: 0 additions & 12 deletions exir/passes/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ runtime.python_library(
srcs = [
"__init__.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":const_prop_pass",
":debug_handle_generator_pass",
Expand Down Expand Up @@ -106,7 +105,6 @@ runtime.python_library(
srcs = [
"const_prop_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:pass_base",
Expand All @@ -119,7 +117,6 @@ runtime.python_library(
srcs = [
"scalar_to_tensor_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:pass_base",
Expand All @@ -131,7 +128,6 @@ runtime.python_library(
srcs = [
"constant_prop_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir/dialects:lib",
Expand All @@ -146,7 +142,6 @@ runtime.python_library(
srcs = [
"remove_graph_asserts_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
],
Expand All @@ -169,7 +164,6 @@ runtime.python_library(
"_quant_patterns_and_replacements.py",
"quant_fusion_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":replace_aten_with_edge_pass",
"//caffe2:torch",
Expand All @@ -185,7 +179,6 @@ runtime.python_library(
srcs = [
"quantize_io_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"fbsource//third-party/pypi/numpy:numpy",
"//caffe2:torch",
Expand Down Expand Up @@ -239,7 +232,6 @@ runtime.python_library(
srcs = [
"remove_mixed_type_operators.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:pass_base",
Expand All @@ -251,7 +243,6 @@ runtime.python_library(
srcs = [
"spec_prop_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:delegate",
Expand All @@ -265,7 +256,6 @@ runtime.python_library(
srcs = [
"init_mutable_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//executorch/exir:delegate",
],
Expand All @@ -276,7 +266,6 @@ runtime.python_library(
srcs = [
"sym_shape_eval_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:_warnings",
Expand Down Expand Up @@ -351,7 +340,6 @@ runtime.python_library(
srcs = [
"debug_handle_generator_pass.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:debug_handle_utils",
Expand Down
1 change: 0 additions & 1 deletion exir/tests/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ runtime.python_library(
srcs = [
"models.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:lib",
Expand Down
1 change: 0 additions & 1 deletion exir/verification/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ runtime.python_library(
"arg_validator.py",
"verifier.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//caffe2:torch",
"//executorch/exir:error",
Expand Down
1 change: 0 additions & 1 deletion extension/pytree/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ runtime.python_library(
"__init__.py",
],
base_module = "executorch.extension.pytree",
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
":pybindings",
"//caffe2:torch",
Expand Down
1 change: 0 additions & 1 deletion extension/training/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ runtime.python_library(
srcs = [
"__init__.py",
],
visibility = ["//executorch/...", "@EXECUTORCH_CLIENTS"]
deps = [
"//executorch/extension/training/pybindings:_training_lib",
"//executorch/extension/training/pybindings:_training_module",
Expand Down
2 changes: 1 addition & 1 deletion third-party/ao
Submodule ao updated 103 files
Loading