Skip to content

Commit

Permalink
executorch/examples/portable/custom_ops/custom_ops_2_out.cpp: fix llv…
Browse files Browse the repository at this point in the history
…m-17-exposed format mismatches

Differential Revision: D64656845

Pull Request resolved: pytorch#6368
  • Loading branch information
meyering authored Oct 22, 2024
1 parent 5d7bd71 commit 8c96805
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 8c96805

Please sign in to comment.