Skip to content

Commit 779eee1

Browse files
committed
Support Half/BFloat16 in split_with_sizes.
Partial fix for #7748. ghstack-source-id: 9f183dddcd87edb2493af0f97d7ad4e40d9be434 ghstack-comment-id: 2599398274 Pull Request resolved: #7758
1 parent 57a09f4 commit 779eee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernels/portable/cpu/op_split_with_sizes_copy.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ void split_with_sizes_copy_out(
7171
ScalarType in_type = in.scalar_type();
7272
ScalarType out_type = out[0].scalar_type();
7373

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

7878
// Iterate through list of out tensors

0 commit comments

Comments
 (0)