Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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_full_like.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Tensor& full_like_out(
CTYPE_VAL val;
utils::extract_scalar(fill_value, &val);

ET_SWITCH_REALHB_TYPES(out_type, ctx, name, CTYPE_OUT, [&] {
ET_SWITCH_REALHBBF16_TYPES(out_type, ctx, name, CTYPE_OUT, [&] {
CTYPE_OUT val_casted = static_cast<CTYPE_OUT>(val);
auto data_out = out.mutable_data_ptr<CTYPE_OUT>();
for (size_t i = 0; i < out.numel(); ++i) {
Expand Down
2 changes: 1 addition & 1 deletion kernels/test/op_full_like_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void OpFullLikeTest::test_full_like_out<ScalarType::Bool>() {

TEST_F(OpFullLikeTest, AllRealOutputPasses) {
#define TEST_ENTRY(ctype, dtype) test_full_like_out<ScalarType::dtype>();
ET_FORALL_REAL_TYPES_AND(Bool, TEST_ENTRY);
ET_FORALL_REALHBF16_TYPES(TEST_ENTRY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the boolean. Use ET_FORALL_REALHBBF16_TYPES. Granted that the test name was misleading. Could you please change that as well. AllRealOutputPasses -> AllDtypeOutputPasses

#undef TEST_ENTRY
}

Expand Down
Loading