Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d4efe85

Browse files
committedAug 28, 2024·
Fix link to v2.RGB in docs
1 parent bdf354e commit d4efe85

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

+1-1
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)
Please sign in to comment.