From 3f92cf25eaa19d0211a576bed0d37a599ef6f7f5 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 9 Jan 2025 17:22:29 +0000 Subject: [PATCH] Use brackets instead of parenthesis for interval --- torchvision/transforms/v2/_geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/v2/_geometry.py b/torchvision/transforms/v2/_geometry.py index c2461418a42..3d02dcc38d0 100644 --- a/torchvision/transforms/v2/_geometry.py +++ b/torchvision/transforms/v2/_geometry.py @@ -567,7 +567,7 @@ class RandomRotation(Transform): Args: degrees (sequence or number): Range of degrees to select from. If degrees is a number instead of sequence like (min, max), the range of degrees - will be (-degrees, +degrees). + will be [-degrees, +degrees]. interpolation (InterpolationMode, optional): Desired interpolation enum defined by :class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``. If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.