Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
78c27197
Unverified
Commit
78c27197
authored
Mar 31, 2023
by
Johannes
Committed by
GitHub
Mar 31, 2023
Browse files
Update docstring of Resize with shape constraint (#7480)
Co-authored-by:
Philip Meier
<
github.pmeier@posteo.de
>
parent
a5ac34df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+1
-1
No files found.
torchvision/transforms/transforms.py
View file @
78c27197
...
...
@@ -283,7 +283,7 @@ class Normalize(torch.nn.Module):
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 a
n 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment