diff options
Diffstat (limited to 'tests/validation/reference/CropResize.cpp')
-rw-r--r-- | tests/validation/reference/CropResize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/reference/CropResize.cpp b/tests/validation/reference/CropResize.cpp index f25a0317be..68ee4557fb 100644 --- a/tests/validation/reference/CropResize.cpp +++ b/tests/validation/reference/CropResize.cpp @@ -123,7 +123,7 @@ SimpleTensor<float> scale_image(const SimpleTensor<float> &in, const TensorShape template <typename T> SimpleTensor<float> crop_image(const SimpleTensor<T> &src, Coordinates start, Coordinates end, int32_t batch_index, float extrapolation_value) { - TensorShape out_shape(src.shape()[0], abs(end[0] - start[0]) + 1, abs(end[1] - start[1]) + 1); + TensorShape out_shape(src.shape()[0], static_cast<uint32_t>(abs(end[0] - start[0])) + 1, static_cast<uint32_t>(abs(end[1] - start[1])) + 1); SimpleTensor<float> out{ out_shape, DataType::F32, 1, QuantizationInfo(), DataLayout::NHWC }; |