From: Fei Sun Date: Sat, 15 Dec 2018 17:07:02 +0000 (-0800) Subject: Fix a typo in the assert X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~2216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60badccd10e0603361a6a651c82a6c3909ec231b;p=platform%2Fupstream%2Fpytorch.git Fix a typo in the assert Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/15265 Reviewed By: llyfacebook Differential Revision: D13477029 Pulled By: sf-wind fbshipit-source-id: 9c5571a583c01f9701625541ebec0c836cb923f2 --- diff --git a/binaries/convert_image_to_tensor.cc b/binaries/convert_image_to_tensor.cc index f0cc736..785102f 100755 --- a/binaries/convert_image_to_tensor.cc +++ b/binaries/convert_image_to_tensor.cc @@ -131,7 +131,7 @@ cv::Mat resizeImage(cv::Mat& img) { int scaled_height = int(round(img.rows * im_scale)); assert((scaled_width <= max_size) && (scaled_height <= max_size)); if ((scaled_width < min_size) || (scaled_height < min_size)) { - assert((scaled_width == max_size) || (scaled_width == max_size)); + assert((scaled_width == max_size) || (scaled_height == max_size)); } else { assert((scaled_width == min_size) || (scaled_height == min_size)); }