File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
torchvision/prototype/transforms/functional Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments