Skip to content

Commit 78c2719

Browse files
JohannesTheopmeier
andauthored
Update docstring of Resize with shape constraint (#7480)
Co-authored-by: Philip Meier <[email protected]>
1 parent a5ac34d commit 78c2719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def __repr__(self) -> str:
283283
class Resize(torch.nn.Module):
284284
"""Resize the input image to the given size.
285285
If the image is torch Tensor, it is expected
286-
to have [..., H, W] shape, where ... means an arbitrary number of leading dimensions
286+
to have [..., H, W] shape, where ... means a maximum of two leading dimensions
287287
288288
.. warning::
289289
The output image might be different depending on its type: when downsampling, the interpolation of PIL images

0 commit comments

Comments
 (0)