Skip to content

Commit d4011fc

Browse files
committed
revert List[float] back to List[int]
1 parent 9fce539 commit d4011fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/transforms/functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ def rotate(
993993
angle: float,
994994
interpolation: InterpolationMode = InterpolationMode.NEAREST,
995995
expand: bool = False,
996-
center: Optional[List[float]] = None,
996+
center: Optional[List[int]] = None,
997997
fill: Optional[List[float]] = None,
998998
resample: Optional[int] = None,
999999
) -> Tensor:
@@ -1074,7 +1074,7 @@ def rotate(
10741074
def affine(
10751075
img: Tensor,
10761076
angle: float,
1077-
translate: List[float],
1077+
translate: List[int],
10781078
scale: float,
10791079
shear: List[float],
10801080
interpolation: InterpolationMode = InterpolationMode.NEAREST,

0 commit comments

Comments
 (0)