[Fix] Fix typo in 'LetterResize' transform (#1618)

pull/1623/head
Li Zhang 2023-01-06 11:24:54 +08:00 committed by GitHub
parent 5d0a08eafb
commit db8de7ec1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class LetterResize : public Transform {
}
Tensor dst_img;
if (!(no_pad_shape[0] == h, no_pad_shape[1] == w)) {
if (!(no_pad_shape[0] == h && no_pad_shape[1] == w)) {
OUTCOME_TRY(resize_.Apply(src_img, dst_img, no_pad_shape[0], no_pad_shape[1]));
} else {
dst_img = src_img;