From fd0e28e0878a5e0f0be6aebcdbb644b869987aed Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Wed, 28 Aug 2024 10:13:18 +0100 Subject: [PATCH] Fix link to v2.RGB in docs (#8611) --- torchvision/transforms/v2/functional/_color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/v2/functional/_color.py b/torchvision/transforms/v2/functional/_color.py index 34d1e101dbd..eb75f58cb7a 100644 --- a/torchvision/transforms/v2/functional/_color.py +++ b/torchvision/transforms/v2/functional/_color.py @@ -66,7 +66,7 @@ def _rgb_to_grayscale_image_pil(image: PIL.Image.Image, num_output_channels: int def grayscale_to_rgb(inpt: torch.Tensor) -> torch.Tensor: - """See :class:`~torchvision.transforms.v2.GrayscaleToRgb` for details.""" + """See :class:`~torchvision.transforms.v2.RGB` for details.""" if torch.jit.is_scripting(): return grayscale_to_rgb_image(inpt)