Skip to content
Closed
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
2 changes: 1 addition & 1 deletion kernels/portable/cpu/op_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Tensor& index_Tensor_out(
compute_dim_map(in, indices, dim_map, block_count == 1);
compute_index_map(in, indices, ix_map);

ET_SWITCH_REALHB_TYPES(in_type, ctx, "index.Tensor_out", CTYPE, [&]() {
ET_SWITCH_REALHBBF16_TYPES(in_type, ctx, "index.Tensor_out", CTYPE, [&]() {
const CTYPE* const in_data = in.const_data_ptr<CTYPE>();
CTYPE* const out_data = out.mutable_data_ptr<CTYPE>();

Expand Down
2 changes: 1 addition & 1 deletion kernels/test/op_index_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class OpIndexTensorOutTest : public OperatorTest {
#define TEST_ENTRY(ctype, dtype) \
test_dtype<ScalarType::dtype, ScalarType::Long, ScalarType::dtype>();

ET_FORALL_REAL_TYPES_AND(Bool, TEST_ENTRY);
ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);

#undef TEST_ENTRY
}
Expand Down
Loading