|
| 1 | +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") |
| 2 | +oncall("executorch") |
1 | 3 | # @noautodeps |
2 | 4 | # add this empty BUCK file to unblock landing. Without this, we get land error like: |
3 | 5 | # "No build file at xplat/executorch/exir/BUCK when resolving target fbsource//xplat/executorch/exir:." |
4 | 6 |
|
5 | | -oncall("executorch") |
| 7 | + |
| 8 | +# !!!! fbcode/executorch/test/end2end/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! |
| 9 | + |
| 10 | +# @noautodeps |
| 11 | + |
| 12 | +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") |
| 13 | +load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") |
| 14 | + |
| 15 | + |
| 16 | +fbcode_target(_kind = runtime.python_library, |
| 17 | + name = "exported_module", |
| 18 | + srcs = [ |
| 19 | + "exported_module.py", |
| 20 | + ], |
| 21 | + visibility = [ |
| 22 | + "//executorch/...", |
| 23 | + ], |
| 24 | + deps = [ |
| 25 | + "//caffe2:torch", |
| 26 | + "//executorch/exir:dynamic_shape", |
| 27 | + "//executorch/exir:lib", |
| 28 | + "//executorch/exir:pass_manager", |
| 29 | + "//executorch/exir/passes:lib", |
| 30 | + ], |
| 31 | +) |
| 32 | + |
| 33 | +fbcode_target(_kind = runtime.python_library, |
| 34 | + name = "register_scratch_meta_fns", |
| 35 | + srcs = [ |
| 36 | + "register_scratch_meta_fns.py", |
| 37 | + ], |
| 38 | + deps = [ |
| 39 | + "//executorch/exir/operator:manip", |
| 40 | + ], |
| 41 | +) |
| 42 | + |
| 43 | +fbcode_target(_kind = python_unittest, |
| 44 | + name = "end2end_aten", |
| 45 | + srcs = [ |
| 46 | + "test_end2end.py", |
| 47 | + ], |
| 48 | + preload_deps = ["//executorch/kernels/portable:custom_ops_generated_lib"], |
| 49 | + deps = [ |
| 50 | + ":exported_module", |
| 51 | + ":register_scratch_meta_fns", |
| 52 | + "//caffe2:torch", |
| 53 | + "//executorch/devtools:lib", |
| 54 | + "//executorch/devtools/bundled_program:config", |
| 55 | + "//executorch/devtools/bundled_program/serialize:lib", |
| 56 | + "//executorch/exir:dynamic_shape", |
| 57 | + "//executorch/exir:lib", |
| 58 | + "//executorch/exir:memory", |
| 59 | + "//executorch/exir:pass_manager", |
| 60 | + "//executorch/exir:print_program", |
| 61 | + "//executorch/exir:tensor", |
| 62 | + "//executorch/exir/_serialize:lib", |
| 63 | + "//executorch/exir/emit:lib", |
| 64 | + "//executorch/exir/passes:lib", |
| 65 | + "//executorch/exir/tests:control_flow_models", |
| 66 | + "//executorch/exir/tests:dynamic_shape_models", |
| 67 | + "//executorch/exir/tests:models", |
| 68 | + "//executorch/exir/tests:transformer", |
| 69 | + "//executorch/extension/pybindings:aten_lib", |
| 70 | + "//executorch/extension/pytree:pybindings", |
| 71 | + ], |
| 72 | +) |
| 73 | + |
| 74 | +fbcode_target(_kind = python_unittest, |
| 75 | + name = "end2end", |
| 76 | + srcs = [ |
| 77 | + "test_end2end.py", |
| 78 | + ], |
| 79 | + preload_deps = ["//executorch/kernels/portable:custom_ops_generated_lib"], |
| 80 | + deps = [ |
| 81 | + ":exported_module", |
| 82 | + ":register_scratch_meta_fns", |
| 83 | + "//caffe2:torch", |
| 84 | + "//executorch/devtools:lib", |
| 85 | + "//executorch/devtools/bundled_program:config", |
| 86 | + "//executorch/devtools/bundled_program/serialize:lib", |
| 87 | + "//executorch/exir:dynamic_shape", |
| 88 | + "//executorch/exir:lib", |
| 89 | + "//executorch/exir:memory", |
| 90 | + "//executorch/exir:pass_manager", |
| 91 | + "//executorch/exir:print_program", |
| 92 | + "//executorch/exir:tensor", |
| 93 | + "//executorch/exir/_serialize:lib", |
| 94 | + "//executorch/exir/emit:lib", |
| 95 | + "//executorch/exir/passes:lib", |
| 96 | + "//executorch/exir/tests:control_flow_models", |
| 97 | + "//executorch/exir/tests:dynamic_shape_models", |
| 98 | + "//executorch/exir/tests:models", |
| 99 | + "//executorch/exir/tests:transformer", |
| 100 | + "//executorch/extension/pybindings:portable_lib", |
| 101 | + "//executorch/extension/pytree:pybindings", |
| 102 | + ], |
| 103 | +) |
0 commit comments