Skip to content

Commit e70c4e3

Browse files
author
Philip Meier
committed
bug fix
1 parent 3db9492 commit e70c4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def rotate(img, angle, resample=False, expand=False, center=None, fill=0):
714714
raise TypeError('img should be PIL Image. Got {}'.format(type(img)))
715715

716716
if isinstance(fill, int):
717-
fill = tuple([int] * 3)
717+
fill = tuple([fill] * 3)
718718

719719
return img.rotate(angle, resample, expand, center, fillcolor=fill)
720720

0 commit comments

Comments
 (0)