Skip to content

Commit 80c9acd

Browse files
swolchokZonglin Peng
authored and
Zonglin Peng
committed
Support Half/BFloat16 in split_with_sizes. (pytorch#7758)
Partial fix for pytorch#7748.
1 parent 3ac6af6 commit 80c9acd

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_REALHBBF16_TYPES(in_type, ctx, __func__, CTYPE_IN, [&]() {
75+
ET_SWITCH_REALHBBF16_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)