-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") | ||
load("targets.bzl", "define_common_targets") | ||
|
||
oncall("odai_jarvis") | ||
|
||
|
||
python_unittest( | ||
name = "test_add_op", | ||
srcs = [ | ||
"test_add_op.py", | ||
], | ||
typing = True, | ||
supports_static_listing = False, | ||
deps = [ | ||
"fbsource//third-party/pypi/parameterized:parameterized", | ||
"//caffe2:torch", | ||
"//executorch/backends/cadence/aot:ops_registrations", | ||
"//executorch/backends/cadence/aot:export_example", | ||
"//executorch/backends/cadence/aot:compiler", | ||
], | ||
) | ||
define_common_targets() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") | ||
|
||
TESTS_LIST = [ | ||
"add_op", | ||
"quantized_conv1d_op", | ||
"quantized_linear_op", | ||
] | ||
|
||
def define_common_targets(): | ||
for op in TESTS_LIST: | ||
_define_test_target(op) | ||
|
||
|
||
def _define_test_target(test_name): | ||
file_name = "test_{}".format(test_name) | ||
python_unittest( | ||
name = file_name, | ||
srcs = [ | ||
"{}.py".format(file_name), | ||
], | ||
typing = True, | ||
supports_static_listing = False, | ||
deps = [ | ||
"fbsource//third-party/pypi/parameterized:parameterized", | ||
"fbcode//caffe2:torch", | ||
"fbcode//executorch/backends/cadence/aot:ops_registrations", | ||
"fbcode//executorch/backends/cadence/aot:export_example", | ||
"fbcode//executorch/backends/cadence/aot:compiler", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.