Unverified Commit 78c27197 authored by Johannes's avatar Johannes Committed by GitHub
Browse files

Update docstring of Resize with shape constraint (#7480)


Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
parent a5ac34df
...@@ -283,7 +283,7 @@ class Normalize(torch.nn.Module): ...@@ -283,7 +283,7 @@ class Normalize(torch.nn.Module):
class Resize(torch.nn.Module): class Resize(torch.nn.Module):
"""Resize the input image to the given size. """Resize the input image to the given size.
If the image is torch Tensor, it is expected 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:: .. warning::
The output image might be different depending on its type: when downsampling, the interpolation of PIL images The output image might be different depending on its type: when downsampling, the interpolation of PIL images
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment