Skip to content

Commit fc6b8ea

Browse files
cccclaifacebook-github-bot
authored andcommitted
Add BUCK file to coreml export script (#5702)
Summary: Pull Request resolved: #5702 As title, add a target file so we can use it internally ``` buck run //executorch/examples/apple/coreml/scripts:export -- -m resnet18 ``` ghstack-source-id: 244901220 exported-using-ghexport bypass-github-export-checks Reviewed By: shoumikhin Differential Revision: D63476610 fbshipit-source-id: 908d27ff24335deacbb8a55d1510afac85277f05
1 parent 7127ea9 commit fc6b8ea

File tree

1 file changed

+18
-0
lines changed
  • examples/apple/coreml/scripts

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Any targets that should be shared between fbcode and xplat must be defined in
2+
# targets.bzl. This file can contain fbcode-only targets.
3+
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
4+
5+
python_binary(
6+
name = "export",
7+
srcs = [
8+
"export.py",
9+
],
10+
main_function = "executorch.examples.apple.coreml.scripts.export.main",
11+
deps = [
12+
"//executorch/backends/apple/coreml:backend",
13+
"//executorch/backends/apple/coreml:partitioner",
14+
"//executorch/backends/apple/coreml:quantizer",
15+
"//executorch/devtools/etrecord:etrecord",
16+
"//executorch/examples/models:models",
17+
],
18+
)

0 commit comments

Comments
 (0)