@@ -29,7 +29,7 @@ Tensor& any_all_out(KernelRuntimeContext& ctx, const Tensor& in, Tensor& out) {
29
29
ScalarType out_type = out.scalar_type ();
30
30
constexpr auto name = " any.all_out" ;
31
31
32
- ET_SWITCH_REALHB_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
32
+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
33
33
ET_SWITCH_TWO_TYPES (Bool, Byte , out_type, ctx, name, CTYPE_OUT, [&] {
34
34
const auto data_in = in.const_data_ptr <CTYPE_IN>();
35
35
auto data_out = out.mutable_data_ptr <CTYPE_OUT>();
@@ -78,7 +78,7 @@ Tensor& any_dims_out(
78
78
ScalarType out_type = out.scalar_type ();
79
79
constexpr auto name = " any.dims_out" ;
80
80
81
- ET_SWITCH_REALHB_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
81
+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
82
82
ET_SWITCH_TWO_TYPES (Bool, Byte , out_type, ctx, name, CTYPE_OUT, [&] {
83
83
CTYPE_OUT* out_data = out.mutable_data_ptr <CTYPE_OUT>();
84
84
if (dim_list.has_value () && dim_list.value ().empty ()) {
@@ -135,7 +135,7 @@ Tensor& any_out(
135
135
ScalarType out_type = out.scalar_type ();
136
136
constexpr auto name = " any.out" ;
137
137
138
- ET_SWITCH_REALHB_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
138
+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
139
139
ET_SWITCH_TWO_TYPES (Bool, Byte , out_type, ctx, name, CTYPE_OUT, [&] {
140
140
CTYPE_OUT* out_data = out.mutable_data_ptr <CTYPE_OUT>();
141
141
for (size_t out_ix = 0 ; out_ix < out.numel (); ++out_ix) {
0 commit comments