Skip to content

Commit

Permalink
Fix link to v2.RGB in docs (#8611)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Aug 28, 2024
1 parent bdf354e commit fd0e28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/transforms/v2/functional/_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fd0e28e

Please sign in to comment.