Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions kernels/portable/cpu/op_unbind_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ void unbind_copy_int_out(
ScalarType in_type = input.scalar_type();
ScalarType out_type = out[0].scalar_type();

ET_SWITCH_REAL_TYPES_AND(
Bool, in_type, ctx, "unbind_copy.int_out", CTYPE_IN, [&]() {
ET_SWITCH_REAL_TYPES_AND(
Bool, out_type, ctx, "unbind_copy.int_out", CTYPE_OUT, [&]() {
ET_SWITCH_REALHBF16_TYPES(
in_type, ctx, "unbind_copy.int_out", CTYPE_IN, [&]() {
ET_SWITCH_REALHBF16_TYPES(
out_type, ctx, "unbind_copy.int_out", CTYPE_OUT, [&]() {
const CTYPE_IN* const input_data =
input.const_data_ptr<CTYPE_IN>();
for (size_t i = 0, e = out.size(); i < e; ++i) {
Expand Down
6 changes: 3 additions & 3 deletions kernels/test/op_unbind_copy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,19 @@ class OpUnbindCopyIntOutTest : public OperatorTest {
*/
TEST_F(OpUnbindCopyIntOutTest, Unbind1x2x3OnDim0AllRealDtypes) {
#define TEST_ENTRY(ctype, dtype) test_unbind_dim0<ScalarType::dtype>();
ET_FORALL_REAL_TYPES(TEST_ENTRY);
ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
#undef TEST_ENTRY
}

TEST_F(OpUnbindCopyIntOutTest, Unbind1x2x3OnDim1AllRealDTypes) {
#define TEST_ENTRY(ctype, dtype) test_unbind_dim1<ScalarType::dtype>();
ET_FORALL_REAL_TYPES(TEST_ENTRY);
ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
#undef TEST_ENTRY
}

TEST_F(OpUnbindCopyIntOutTest, Unbind1x2x3OnDim2AllRealDTypes) {
#define TEST_ENTRY(ctype, dtype) test_unbind_dim2<ScalarType::dtype>();
ET_FORALL_REAL_TYPES(TEST_ENTRY);
ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
#undef TEST_ENTRY
}

Expand Down
Loading