affine¶
- torchvision.transforms.v2.functional.affine(inpt: Tensor, angle: Union[int, float], translate: List[float], scale: float, shear: List[float], interpolation: Union[InterpolationMode, int] = InterpolationMode.NEAREST, fill: Optional[List[float]] = None, center: Optional[List[float]] = None) Tensor [source]¶
[BETA] See
RandomAffine
for details.