Skip to content

Commit

Permalink
[fbsync] Fixed markup in functional.py (#8007)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D50789099

fbshipit-source-id: 394252b013673acab9e82053f04ec4406eed1f04
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Oct 31, 2023
1 parent 936b50f commit 0ccdf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/transforms/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ def rgb_to_grayscale(img: Tensor, num_output_channels: int = 1) -> Tensor:
Note:
Please, note that this method supports only RGB images as input. For inputs in other color spaces,
please, consider using meth:`~torchvision.transforms.functional.to_grayscale` with PIL Image.
please, consider using :meth:`~torchvision.transforms.functional.to_grayscale` with PIL Image.
Args:
img (PIL Image or Tensor): RGB Image to be converted to grayscale.
Expand Down

0 comments on commit 0ccdf75

Please sign in to comment.