diff --git a/examples/portable/custom_ops/custom_ops_2_out.cpp b/examples/portable/custom_ops/custom_ops_2_out.cpp index f792d06f29..69436750cc 100644 --- a/examples/portable/custom_ops/custom_ops_2_out.cpp +++ b/examples/portable/custom_ops/custom_ops_2_out.cpp @@ -19,12 +19,12 @@ namespace { void check_preconditions(const Tensor& in, Tensor& out) { ET_CHECK_MSG( out.scalar_type() == ScalarType::Float, - "Expected out tensor to have dtype Float, but got %hhd instead", - out.scalar_type()); + "Expected out tensor to have dtype Float, but got %d instead", + static_cast(out.scalar_type())); ET_CHECK_MSG( in.scalar_type() == ScalarType::Float, - "Expected in tensor to have dtype Float, but got %hhd instead", - in.scalar_type()); + "Expected in tensor to have dtype Float, but got %d instead", + static_cast(in.scalar_type())); ET_CHECK_MSG( out.dim() == in.dim(), "Number of dims of out tensor is not compatible with inputs");