@@ -30,10 +30,12 @@ Tensor& any_all_out(KernelRuntimeContext& ctx, const Tensor& in, Tensor& out) {
3030
3131 ScalarType in_type = in.scalar_type ();
3232 ScalarType out_type = out.scalar_type ();
33- constexpr auto name = " any.all_out" ;
3433
35- ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
36- ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, name, CTYPE_OUT, [&] {
34+ // @lint-ignore CLANGTIDY facebook-hte-CArray
35+ static constexpr const char op_name[] = " any.all_out" ;
36+
37+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, op_name, CTYPE_IN, [&] {
38+ ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, op_name, CTYPE_OUT, [&] {
3739 const auto data_in = in.const_data_ptr <CTYPE_IN>();
3840 auto data_out = out.mutable_data_ptr <CTYPE_OUT>();
3941 data_out[0 ] = static_cast <CTYPE_OUT>(false );
@@ -79,15 +81,17 @@ Tensor& any_dims_out(
7981
8082 ScalarType in_type = in.scalar_type ();
8183 ScalarType out_type = out.scalar_type ();
82- constexpr auto name = " any.dims_out" ;
84+
85+ // @lint-ignore CLANGTIDY facebook-hte-CArray
86+ static constexpr const char op_name[] = " any.dims_out" ;
8387
8488 const bool in_not_empty = in.numel () > 0 ;
8589 std::optional<MapReduceOverDimListPlan> plan;
8690 if ((!dim_list.has_value () || !dim_list.value ().empty ()) && in_not_empty) {
8791 plan.emplace (in, dim_list);
8892 }
89- ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name , CTYPE_IN, [&] {
90- ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, name , CTYPE_OUT, [&] {
93+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, op_name , CTYPE_IN, [&] {
94+ ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, op_name , CTYPE_OUT, [&] {
9195 CTYPE_OUT* out_data = out.mutable_data_ptr <CTYPE_OUT>();
9296 if (dim_list.has_value () && dim_list.value ().empty ()) {
9397 const CTYPE_IN* in_data = in.const_data_ptr <CTYPE_IN>();
@@ -144,10 +148,12 @@ Tensor& any_out(
144148
145149 ScalarType in_type = in.scalar_type ();
146150 ScalarType out_type = out.scalar_type ();
147- constexpr auto name = " any.out" ;
148151
149- ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, name, CTYPE_IN, [&] {
150- ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, name, CTYPE_OUT, [&] {
152+ // @lint-ignore CLANGTIDY facebook-hte-CArray
153+ static constexpr const char op_name[] = " any.out" ;
154+
155+ ET_SWITCH_REALHBBF16_TYPES (in_type, ctx, op_name, CTYPE_IN, [&] {
156+ ET_SWITCH_TWO_TYPES (Bool, Byte, out_type, ctx, op_name, CTYPE_OUT, [&] {
151157 CTYPE_OUT* out_data = out.mutable_data_ptr <CTYPE_OUT>();
152158 const bool success = parallel_for_each_reduce_over_dim_output_index (
153159 in, dim, out, [&](const auto begin, const auto end) {
0 commit comments