Skip to content

Commit fd0e28e

Browse files
authored
Fix link to v2.RGB in docs (#8611)
1 parent bdf354e commit fd0e28e

File tree

1 file changed

+1
-1
lines changed
  • torchvision/transforms/v2/functional

1 file changed

+1
-1
lines changed

torchvision/transforms/v2/functional/_color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _rgb_to_grayscale_image_pil(image: PIL.Image.Image, num_output_channels: int
6666

6767

6868
def grayscale_to_rgb(inpt: torch.Tensor) -> torch.Tensor:
69-
"""See :class:`~torchvision.transforms.v2.GrayscaleToRgb` for details."""
69+
"""See :class:`~torchvision.transforms.v2.RGB` for details."""
7070
if torch.jit.is_scripting():
7171
return grayscale_to_rgb_image(inpt)
7272

0 commit comments

Comments
 (0)