Skip to content

Commit 33e497c

Browse files
vfdev-5datumbox
andauthored
Apply suggestions from code review
Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent f32d5fc commit 33e497c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def rotate_image_tensor(
306306
center_f = [0.0, 0.0]
307307
if center is not None:
308308
if expand:
309-
warnings.warn("If provided center argument is ignored if expand is True")
309+
warnings.warn("The provided center argument is ignored if expand is True")
310310
else:
311311
_, height, width = get_dimensions_image_tensor(img)
312312
# Center values should be in pixel coordinates but translated such that (0, 0) corresponds to image center.
@@ -327,7 +327,7 @@ def rotate_image_pil(
327327
center: Optional[List[float]] = None,
328328
) -> PIL.Image.Image:
329329
if center is not None and expand:
330-
warnings.warn("If provided center argument is ignored if expand is True")
330+
warnings.warn("The provided center argument is ignored if expand is True")
331331
center = None
332332

333333
return _FP.rotate(

0 commit comments

Comments
 (0)