Skip to content

Commit

Permalink
[fbsync] Update docstring of Resize with shape constraint (#7480)
Browse files Browse the repository at this point in the history
Summary: Co-authored-by: Philip Meier <github.pmeier@posteo.de>

Reviewed By: vmoens

Differential Revision: D45183667

fbshipit-source-id: 6b50f267d813f72ef26604f7b7d8530a3b6a39bf
  • Loading branch information
NicolasHug authored and facebook-github-bot committed Apr 24, 2023
1 parent ccdeabb commit f50ec42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def __repr__(self) -> str:
class Resize(torch.nn.Module):
"""Resize the input image to the given size.
If the image is torch Tensor, it is expected
to have [..., H, W] shape, where ... means an arbitrary number of leading dimensions
to have [..., H, W] shape, where ... means a maximum of two leading dimensions
.. warning::
The output image might be different depending on its type: when downsampling, the interpolation of PIL images
Expand Down

0 comments on commit f50ec42

Please sign in to comment.