Skip to content

Commit 3554d80

Browse files
authored
Fixed few typos in docs for type conversion transforms (#7845)
1 parent ba7ce61 commit 3554d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/transforms/v2/_type_conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ToImage(Transform):
3030
"""[BETA] Convert a tensor, ndarray, or PIL Image to :class:`~torchvision.datapoints.Image`
3131
; this does not scale values.
3232
33-
.. v2betastatus:: ToImageTensor transform
33+
.. v2betastatus:: ToImage transform
3434
3535
This transform does not support torchscript.
3636
"""
@@ -46,7 +46,7 @@ def _transform(
4646
class ToPILImage(Transform):
4747
"""[BETA] Convert a tensor or an ndarray to PIL Image - this does not scale values.
4848
49-
.. v2betastatus:: ToImagePIL transform
49+
.. v2betastatus:: ToPILImage transform
5050
5151
This transform does not support torchscript.
5252

0 commit comments

Comments
 (0)