Skip to content

Commit

Permalink
Support Half/BFloat16 in split_with_sizes.
Browse files Browse the repository at this point in the history
Partial fix for #7748.

ghstack-source-id: 9f183dddcd87edb2493af0f97d7ad4e40d9be434
ghstack-comment-id: 2599398274
Pull Request resolved: #7758
  • Loading branch information
swolchok committed Jan 18, 2025
1 parent 57a09f4 commit 779eee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernels/portable/cpu/op_split_with_sizes_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ void split_with_sizes_copy_out(
ScalarType in_type = in.scalar_type();
ScalarType out_type = out[0].scalar_type();

ET_SWITCH_REAL_TYPES_AND(Bool, in_type, ctx, __func__, CTYPE_IN, [&]() {
ET_SWITCH_REAL_TYPES_AND(Bool, out_type, ctx, __func__, CTYPE_OUT, [&]() {
ET_SWITCH_REALHBF16_TYPES(in_type, ctx, __func__, CTYPE_IN, [&]() {
ET_SWITCH_REALHBF16_TYPES(out_type, ctx, __func__, CTYPE_OUT, [&]() {
const CTYPE_IN* in_data = in.const_data_ptr<CTYPE_IN>();

// Iterate through list of out tensors
Expand Down

0 comments on commit 779eee1

Please sign in to comment.