diff --git a/backends/cadence/reference/operators/dequantize_per_tensor.cpp b/backends/cadence/reference/operators/dequantize_per_tensor.cpp index bbf427e069..f3a281ea63 100644 --- a/backends/cadence/reference/operators/dequantize_per_tensor.cpp +++ b/backends/cadence/reference/operators/dequantize_per_tensor.cpp @@ -42,7 +42,7 @@ void dequantize_per_tensor_out( impl::reference::kernels::dequantize( out_data, input_data, scale, zero_point, numel); } else { - ET_CHECK_MSG(false, "Unhandled input dtype %hhd", input.scalar_type()); + ET_CHECK_MSG(false, "Unhandled input dtype %hhd", static_cast(input.scalar_type())); } } diff --git a/backends/cadence/reference/operators/quantize_per_tensor.cpp b/backends/cadence/reference/operators/quantize_per_tensor.cpp index df44171cf1..39856d7f20 100644 --- a/backends/cadence/reference/operators/quantize_per_tensor.cpp +++ b/backends/cadence/reference/operators/quantize_per_tensor.cpp @@ -44,7 +44,7 @@ void quantize_per_tensor_out( impl::reference::kernels::quantize( out_data, input_data, 1. / scale, zero_point, numel); } else { - ET_CHECK_MSG(false, "Unhandled input dtype %hhd", out.scalar_type()); + ET_CHECK_MSG(false, "Unhandled input dtype %hhd", static_cast(out.scalar_type())); } } diff --git a/backends/cadence/reference/operators/quantized_layer_norm.cpp b/backends/cadence/reference/operators/quantized_layer_norm.cpp index 27b5bb7661..6b09dd9f3c 100644 --- a/backends/cadence/reference/operators/quantized_layer_norm.cpp +++ b/backends/cadence/reference/operators/quantized_layer_norm.cpp @@ -145,7 +145,7 @@ void quantized_layer_norm_out( output_zero_point, out); } else { - ET_CHECK_MSG(false, "Unhandled input dtype %hhd", input.scalar_type()); + ET_CHECK_MSG(false, "Unhandled input dtype %hhd", static_cast(input.scalar_type())); } } diff --git a/backends/cadence/reference/operators/quantized_relu_out.cpp b/backends/cadence/reference/operators/quantized_relu_out.cpp index 460084fcfb..06f5f82247 100644 --- a/backends/cadence/reference/operators/quantized_relu_out.cpp +++ b/backends/cadence/reference/operators/quantized_relu_out.cpp @@ -68,7 +68,7 @@ void quantized_relu_out( out_shift, output); } else { - ET_CHECK_MSG(false, "Unhandled input dtype %hhd", input.scalar_type()); + ET_CHECK_MSG(false, "Unhandled input dtype %hhd", static_cast(input.scalar_type())); } }