Skip to content

Commit 02fbd74

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Fix fbcode buck run quantize example
Summary: Need to depend on a library instead of a binary. Adding executorch/examples/export:lib for this purpose. Reviewed By: jerryzh168 Differential Revision: D48667036 fbshipit-source-id: d461162a94bb361264e82ad85d4da2bcc4af8aa5
1 parent 35db16d commit 02fbd74

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

examples/export/TARGETS

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@ python_library(
1111
],
1212
)
1313

14-
python_binary(
15-
name = "export_example",
14+
python_library(
15+
name = "lib",
1616
srcs = [
1717
"export_example.py",
1818
],
19-
main_module = "executorch.examples.export.export_example",
2019
deps = [
2120
":utils",
2221
"//executorch/examples/models:models",
2322
"//executorch/exir:lib",
2423
],
2524
)
25+
26+
python_binary(
27+
name = "export_example",
28+
main_module = "executorch.examples.export.export_example",
29+
deps = [
30+
":lib",
31+
],
32+
)

examples/quantization/TARGETS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runtime.python_binary(
77
deps = [
88
":quant_utils",
99
"//caffe2:torch",
10-
"//executorch/examples/export:export_example",
10+
"//executorch/examples/export:lib",
1111
"//executorch/examples/models:models",
1212
],
1313
)

0 commit comments

Comments
 (0)