Skip to content

Commit 39bdb41

Browse files
authored
Mass migrate to runtime.python_library
Differential Revision: D82127662 Pull Request resolved: #14153
1 parent 06362f3 commit 39bdb41

File tree

64 files changed

+283
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+283
-283
lines changed

backends/arm/TARGETS

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# LICENSE file in the root directory of this source tree.
55

66
# @noautodeps
7-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
7+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
88

9-
python_library(
9+
runtime.python_library(
1010
name = "ethosu_partitioner",
1111
srcs = [
1212
"ethosu/__init__.py",
@@ -17,7 +17,7 @@ python_library(
1717
":arm_partitioner",
1818
]
1919
)
20-
python_library(
20+
runtime.python_library(
2121
name = "vgf_partitioner",
2222
srcs = [
2323
"vgf/__init__.py",
@@ -28,7 +28,7 @@ python_library(
2828
":arm_partitioner",
2929
]
3030
)
31-
python_library(
31+
runtime.python_library(
3232
name = "constants",
3333
srcs = [
3434
"constants.py",
@@ -37,7 +37,7 @@ python_library(
3737
"//executorch/exir/dialects:lib",
3838
],
3939
)
40-
python_library(
40+
runtime.python_library(
4141
name = "common",
4242
srcs = [
4343
"common/__init__.py",
@@ -50,7 +50,7 @@ python_library(
5050
"//executorch/exir:lib",
5151
],
5252
)
53-
python_library(
53+
runtime.python_library(
5454
name = "arm_partitioner",
5555
srcs = [
5656
"tosa/backend.py",
@@ -65,7 +65,7 @@ python_library(
6565
"//executorch/exir:lib",
6666
],
6767
)
68-
python_library(
68+
runtime.python_library(
6969
name = "arm_backend",
7070
srcs = [
7171
"arm_backend.py",
@@ -84,7 +84,7 @@ python_library(
8484
"//executorch/backends/arm/_passes:passes",
8585
],
8686
)
87-
python_library(
87+
runtime.python_library(
8888
name = "process_node",
8989
srcs = ["process_node.py"],
9090
deps = [
@@ -97,7 +97,7 @@ python_library(
9797
"//executorch/exir:lib",
9898
],
9999
)
100-
python_library(
100+
runtime.python_library(
101101
name = "arm_vela",
102102
srcs = [
103103
"arm_vela.py",
@@ -106,7 +106,7 @@ python_library(
106106
"fbsource//third-party/pypi/ethos-u-vela:ethos-u-vela",
107107
],
108108
)
109-
python_library(
109+
runtime.python_library(
110110
name = "arm_model_evaluator",
111111
srcs = [
112112
"util/arm_model_evaluator.py",

backends/arm/_passes/TARGETS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
python_library(
3+
runtime.python_library(
44
name = "passes",
55
srcs = glob(["*.py"]),
66
deps = [

backends/arm/debug/TARGETS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @noautodeps
2-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
33

4-
python_library(
4+
runtime.python_library(
55
name = "schema",
66
srcs = [
77
"__init__.py",

backends/arm/operator_support/TARGETS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
python_library(
3+
runtime.python_library(
44
name = "operator_support",
55
srcs = glob(["*.py"]),
66
deps = [

backends/arm/operators/TARGETS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @noautodeps
2-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
33

4-
python_library(
4+
runtime.python_library(
55
name = "node_visitor",
66
srcs = ["node_visitor.py"],
77
deps = [
@@ -11,12 +11,12 @@ python_library(
1111
],
1212
)
1313

14-
python_library(
14+
runtime.python_library(
1515
name = "operator_validation_utils",
1616
srcs = ["operator_validation_utils.py"],
1717
)
1818

19-
python_library(
19+
runtime.python_library(
2020
name = "ops",
2121
srcs = glob(["op_*.py", "ops_*.py"]),
2222
deps = [
@@ -32,7 +32,7 @@ python_library(
3232
],
3333
)
3434

35-
python_library(
35+
runtime.python_library(
3636
name = "lib",
3737
srcs = ["__init__.py"],
3838
deps = [

backends/arm/quantizer/TARGETS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

33
# Exposed through __init__.py
4-
python_library(
4+
runtime.python_library(
55
name = "quantization_config",
66
srcs = ["quantization_config.py"],
77
deps = [
@@ -11,7 +11,7 @@ python_library(
1111
)
1212

1313
# Exposed through __init__.py
14-
python_library(
14+
runtime.python_library(
1515
name = "arm_quantizer",
1616
srcs = ["arm_quantizer.py"],
1717
deps = [
@@ -23,7 +23,7 @@ python_library(
2323
],
2424
)
2525

26-
python_library(
26+
runtime.python_library(
2727
name = "quantization_annotator",
2828
srcs = ["quantization_annotator.py"],
2929
deps = [
@@ -34,7 +34,7 @@ python_library(
3434
],
3535
)
3636

37-
python_library(
37+
runtime.python_library(
3838
name = "arm_quantizer_utils",
3939
srcs = ["arm_quantizer_utils.py"],
4040
deps = [
@@ -43,7 +43,7 @@ python_library(
4343
],
4444
)
4545

46-
python_library(
46+
runtime.python_library(
4747
name = "lib",
4848
srcs = ["__init__.py"],
4949
deps = [

backends/arm/test/TARGETS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22
load(":targets.bzl", "define_arm_tests")
33

44

55
oncall("executorch")
66

7-
python_library(
7+
runtime.python_library(
88
name = "conftest",
99
srcs = ["conftest.py"],
1010
deps = [
@@ -14,7 +14,7 @@ python_library(
1414
]
1515
)
1616

17-
python_library(
17+
runtime.python_library(
1818
name = "runner_utils",
1919
srcs = ["runner_utils.py"],
2020
deps = [
@@ -25,7 +25,7 @@ python_library(
2525
]
2626
)
2727

28-
python_library(
28+
runtime.python_library(
2929
name = "common",
3030
srcs = ["common.py"],
3131
deps = [
@@ -35,7 +35,7 @@ python_library(
3535
]
3636
)
3737

38-
python_library(
38+
runtime.python_library(
3939
name = "arm_tester",
4040
srcs = glob(["tester/*.py"]),
4141
deps = [

backends/arm/tosa/TARGETS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
python_library(
3+
runtime.python_library(
44
name = "mapping",
55
srcs = [
66
"mapping.py",
@@ -12,7 +12,7 @@ python_library(
1212
":specification",
1313
],
1414
)
15-
python_library(
15+
runtime.python_library(
1616
name = "quant_utils",
1717
srcs = [
1818
"quant_utils.py",
@@ -28,7 +28,7 @@ python_library(
2828
"//executorch/exir/dialects:lib",
2929
],
3030
)
31-
python_library(
31+
runtime.python_library(
3232
name = "specification",
3333
srcs = [
3434
"specification.py",
@@ -38,7 +38,7 @@ python_library(
3838
"//executorch/exir/backend:compile_spec_schema",
3939
],
4040
)
41-
python_library(
41+
runtime.python_library(
4242
name = "utils",
4343
srcs = [
4444
"utils.py",
@@ -50,7 +50,7 @@ python_library(
5050
],
5151
)
5252

53-
python_library(
53+
runtime.python_library(
5454
name = "tosa",
5555
srcs = [
5656
"__init__.py",

backends/arm/tosa/dialect/TARGETS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
python_library(
3+
runtime.python_library(
44
name = "core",
55
srcs = [
66
"lib.py",
@@ -13,7 +13,7 @@ python_library(
1313
],
1414
)
1515

16-
python_library(
16+
runtime.python_library(
1717
name = "ops",
1818
srcs = glob(["ops/*.py"]),
1919
deps = [
@@ -23,7 +23,7 @@ python_library(
2323
],
2424
)
2525

26-
python_library(
26+
runtime.python_library(
2727
name = "lib",
2828
srcs = ["__init__.py"],
2929
deps = [

0 commit comments

Comments
 (0)