Skip to content

Commit

Permalink
[fbsync] fix doc of read_image (#8469)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D58283854

fbshipit-source-id: 2c4069d91ae6a954dc4d67621907fd342ff239f6
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Jun 7, 2024
1 parent 66ea90d commit 1943ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/io/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def read_image(
The values of the output tensor are uint8 in [0, 255].
Args:
path (str or ``pathlib.Path``): path of the JPEG or PNG image.
path (str or ``pathlib.Path``): path of the JPEG, PNG or GIF image.
mode (ImageReadMode): the read mode used for optionally converting the image.
Default: ``ImageReadMode.UNCHANGED``.
See ``ImageReadMode`` class for more information on various
Expand Down

0 comments on commit 1943ced

Please sign in to comment.