We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fce539 commit d4011fcCopy full SHA for d4011fc
torchvision/transforms/functional.py
@@ -993,7 +993,7 @@ def rotate(
993
angle: float,
994
interpolation: InterpolationMode = InterpolationMode.NEAREST,
995
expand: bool = False,
996
- center: Optional[List[float]] = None,
+ center: Optional[List[int]] = None,
997
fill: Optional[List[float]] = None,
998
resample: Optional[int] = None,
999
) -> Tensor:
@@ -1074,7 +1074,7 @@ def rotate(
1074
def affine(
1075
img: Tensor,
1076
1077
- translate: List[float],
+ translate: List[int],
1078
scale: float,
1079
shear: List[float],
1080
0 commit comments