diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/GraphUtils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/GraphUtils.cpp b/utils/GraphUtils.cpp index bfa28df880..20e1369e73 100644 --- a/utils/GraphUtils.cpp +++ b/utils/GraphUtils.cpp @@ -280,7 +280,8 @@ bool ImageAccessor::access_tensor(ITensor &tensor) #else // __arm__ ARM_COMPUTE_EXIT_ON_MSG_VAR(image_loader->width() != permuted_shape.x() || image_loader->height() != permuted_shape.y(), "Failed to load image file: dimensions [%d,%d] not correct, expected [%" PRIu64 ",%" PRIu64 "].", - image_loader->width(), image_loader->height(), permuted_shape.x(), permuted_shape.y()); + image_loader->width(), image_loader->height(), + static_cast<uint64_t>(permuted_shape.x()), static_cast<uint64_t>(permuted_shape.y())); #endif // __arm__ // Fill the tensor with the PPM content (BGR) @@ -363,7 +364,8 @@ bool ValidationInputAccessor::access_tensor(arm_compute::ITensor &tensor) #else // __arm__ ARM_COMPUTE_EXIT_ON_MSG_VAR(jpeg.width() != permuted_shape.x() || jpeg.height() != permuted_shape.y(), "Failed to load image file: dimensions [%d,%d] not correct, expected [%" PRIu64 ",%" PRIu64 "].", - jpeg.width(), jpeg.height(), permuted_shape.x(), permuted_shape.y()); + jpeg.width(), jpeg.height(), + static_cast<uint64_t>(permuted_shape.x()), static_cast<uint64_t>(permuted_shape.y())); #endif // __arm__ // Fill the tensor with the JPEG content (BGR) |