Skip to content

Commit

Permalink
[ExecuTorch] Arm Ethos: Disable pyre
Browse files Browse the repository at this point in the history
Disabling Pyre. Relying on OSS mypy enabled in #7776.

Differential Revision: [D70146769](https://our.internmc.facebook.com/intern/diff/D70146769/)

ghstack-source-id: 268178737
Pull Request resolved: #8664
  • Loading branch information
digantdesai committed Feb 25, 2025
1 parent bc87eed commit 2dff379
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
18 changes: 0 additions & 18 deletions backends/arm/TARGETS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# @noautodeps
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")

python_library(
name = "arm_partitioner",
srcs = [
Expand All @@ -9,21 +8,18 @@ python_library(
"tosa_backend.py",
"tosa_partitioner.py",
],
typing = True,
deps = [
":arm_backend",
"//executorch/backends/arm/operator_support:operator_support",
"//executorch/backends/arm/_passes:passes",
"//executorch/exir:lib",
],
)

python_library(
name = "arm_backend",
srcs = [
"arm_backend.py",
],
typing = True,
deps = [
"fbsource//third-party/pypi/flatbuffers:flatbuffers",
"fbsource//third-party/pypi/ml-dtypes:ml-dtypes",
Expand All @@ -36,11 +32,9 @@ python_library(
"//executorch/backends/arm/_passes:passes",
],
)

python_library(
name = "process_node",
srcs = ["process_node.py"],
typing = True,
deps = [
"fbsource//third-party/serialization_lib/python/tosa:tosa",
"//executorch/backends/arm/operators:node_visitor",
Expand All @@ -50,36 +44,30 @@ python_library(
"//executorch/exir:lib",
],
)

python_library(
name = "arm_vela",
srcs = [
"arm_vela.py",
],
typing = True,
deps = [
"fbsource//third-party/pypi/ethos-u-vela:ethos-u-vela",
],
)

python_library(
name = "tosa_mapping",
srcs = [
"tosa_mapping.py",
],
typing = True,
deps = [
"fbsource//third-party/serialization_lib/python/serializer:serializer",
"//caffe2:torch",
],
)

python_library(
name = "tosa_quant_utils",
srcs = [
"tosa_quant_utils.py",
],
typing = True,
deps = [
"fbsource//third-party/pypi/numpy:numpy",
"fbsource//third-party/serialization_lib/python/serializer:serializer",
Expand All @@ -88,38 +76,32 @@ python_library(
"//executorch/exir/dialects:lib",
],
)

python_library(
name = "tosa_specification",
srcs = [
"tosa_specification.py",
],
typing = True,
deps = [
"fbsource//third-party/pypi/packaging:packaging",
"//executorch/exir/backend:compile_spec_schema",
],
)

python_library(
name = "tosa_utils",
srcs = [
"tosa_utils.py",
],
typing = True,
deps = [
"fbsource//third-party/serialization_lib/python/serializer:serializer",
":tosa_quant_utils",
"//executorch/backends/arm/operators:node_visitor",
],
)

python_library(
name = "arm_model_evaluator",
srcs = [
"util/arm_model_evaluator.py",
],
typing = True,
deps = [
"//caffe2:torch",
]
Expand Down
1 change: 0 additions & 1 deletion backends/arm/_passes/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
python_library(
name = "passes",
srcs = glob(["*.py"]),
typing = True,
deps = [
"//executorch/backends/arm:tosa_quant_utils",
"//executorch/backends/arm:tosa_utils",
Expand Down
1 change: 0 additions & 1 deletion backends/arm/operator_support/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
python_library(
name = "operator_support",
srcs = glob(["*.py"]),
typing = True,
deps = [
"//executorch/backends/arm/_passes:passes",
"//executorch/backends/arm:tosa_specification",
Expand Down
3 changes: 0 additions & 3 deletions backends/arm/operators/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
python_library(
name = "node_visitor",
srcs = ["node_visitor.py"],
typing = True,
deps = [
"//executorch/backends/arm:tosa_mapping",
"//executorch/backends/arm:tosa_specification",
Expand All @@ -14,7 +13,6 @@ python_library(
python_library(
name = "ops",
srcs = glob(["op_*.py", "ops_*.py"]),
typing = True,
deps = [
"fbsource//third-party/serialization_lib/python/tosa:tosa",
":node_visitor",
Expand All @@ -29,7 +27,6 @@ python_library(
python_library(
name = "lib",
srcs = ["__init__.py"],
typing = True,
deps = [
":node_visitor",
":ops",
Expand Down

0 comments on commit 2dff379

Please sign in to comment.