Skip to content

executorch/examples/portable/custom_ops/custom_ops_2_out.cpp: fix llvm-17-exposed format mismatches #6368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2024
Merged
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
8 changes: 4 additions & 4 deletions examples/portable/custom_ops/custom_ops_2_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(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<int>(in.scalar_type()));
ET_CHECK_MSG(
out.dim() == in.dim(),
"Number of dims of out tensor is not compatible with inputs");
Expand Down
Loading