@@ -41,7 +41,10 @@ Tensor& fill_scalar_out(
4141 out,
4242 " Failed to resize output tensor." );
4343
44- ET_SWITCH_REALHBBF16_TYPES (a_type, ctx, " fill.Scalar_out" , CTYPE_A, [&] {
44+ // @lint-ignore CLANGTIDY facebook-hte-CArray
45+ static constexpr const char op_name[] = " fill.Scalar_out" ;
46+
47+ ET_SWITCH_REALHBBF16_TYPES (a_type, ctx, op_name, CTYPE_A, [&] {
4548 auto opt_b_casted = utils::internal::check_overflow_scalar_cast<CTYPE_A>(b);
4649 ET_KERNEL_CHECK (ctx, opt_b_casted.has_value (), InvalidArgument, );
4750 auto b_casted = opt_b_casted.value ();
@@ -83,9 +86,12 @@ Tensor& fill_tensor_out(
8386 out,
8487 " Failed to resize output tensor." );
8588
86- ET_SWITCH_REALHBBF16_TYPES (a_type, ctx, " fill.Tensor_out" , CTYPE_A, [&] {
89+ // @lint-ignore CLANGTIDY facebook-hte-CArray
90+ static constexpr const char op_name[] = " fill.Tensor_out" ;
91+
92+ ET_SWITCH_REALHBBF16_TYPES (a_type, ctx, op_name, CTYPE_A, [&] {
8793 CTYPE_A b_casted;
88- ET_SWITCH_REALHBBF16_TYPES (b_type, ctx, " fill.Tensor_out " , CTYPE_B, [&] {
94+ ET_SWITCH_REALHBBF16_TYPES (b_type, ctx, op_name , CTYPE_B, [&] {
8995 CTYPE_B b_val;
9096 ET_EXTRACT_SCALAR_TENSOR (b, b_val);
9197 b_casted = static_cast <CTYPE_A>(b_val);
0 commit comments