xref: /aosp_15_r20/external/executorch/kernels/test/BinaryLogicalOpTest.cpp (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #include <executorch/kernels/test/BinaryLogicalOpTest.h>
10 
11 namespace torch::executor::testing {
12 
test_all_dtypes()13 void BinaryLogicalOpTest::test_all_dtypes() {
14 #define TEST_ENTRY(ctype, dtype) \
15   test_op_out<ScalarType::dtype, ScalarType::Double, ScalarType::Double>();
16   ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
17 #undef TEST_ENTRY
18 #define TEST_ENTRY(ctype, dtype) \
19   test_op_out<ScalarType::Double, ScalarType::dtype, ScalarType::Double>();
20   ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
21 #undef TEST_ENTRY
22 #define TEST_ENTRY(ctype, dtype) \
23   test_op_out<ScalarType::Double, ScalarType::Double, ScalarType::dtype>();
24   ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
25 #undef TEST_ENTRY
26 }
27 } // namespace torch::executor::testing
28