Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ void dequantize_per_tensor_out(
impl::reference::kernels::dequantize<int32_t>(
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<int8_t>(input.scalar_type()));
}
}

Expand Down
5 changes: 4 additions & 1 deletion backends/cadence/reference/operators/quantize_per_tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ void quantize_per_tensor_out(
impl::reference::kernels::quantize<int32_t>(
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<int8_t>(out.scalar_type()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ 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<int8_t>(input.scalar_type()));
}
}

Expand Down
5 changes: 4 additions & 1 deletion backends/cadence/reference/operators/quantized_relu_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ 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<int8_t>(input.scalar_type()));
}
}

Expand Down
Loading