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
2 changes: 1 addition & 1 deletion kernels/portable/cpu/op_full.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Tensor& full_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_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class OpFullOutTest : public OperatorTest {
test_ones_out<ScalarType::DTYPE>({2, 3, 4}); \
}

ET_FORALL_REALH_TYPES(GENERATE_TEST)
ET_FORALL_REALHBF16_TYPES(GENERATE_TEST)

TEST_F(OpFullOutTest, ValueOverflow) {
if (torch::executor::testing::SupportedFeatures::get()->is_aten) {
Expand Down
Loading