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
a0b44d70
Unverified
Commit
a0b44d70
authored
Jun 04, 2021
by
Shengwei An
Committed by
GitHub
Jun 04, 2021
Browse files
Change 'range' in docstrings of make_grid to 'value_range' (#3967)
parent
6e5a83fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/utils.py
torchvision/utils.py
+1
-1
No files found.
torchvision/utils.py
View file @
a0b44d70
...
@@ -30,7 +30,7 @@ def make_grid(
...
@@ -30,7 +30,7 @@ def make_grid(
The final grid size is ``(B / nrow, nrow)``. Default: ``8``.
The final grid size is ``(B / nrow, nrow)``. Default: ``8``.
padding (int, optional): amount of padding. Default: ``2``.
padding (int, optional): amount of padding. Default: ``2``.
normalize (bool, optional): If True, shift the image to the range (0, 1),
normalize (bool, optional): If True, shift the image to the range (0, 1),
by the min and max values specified by
:attr:`
range`. Default: ``False``.
by the min and max values specified by
``value_
range`
`
. Default: ``False``.
value_range (tuple, optional): tuple (min, max) where min and max are numbers,
value_range (tuple, optional): tuple (min, max) where min and max are numbers,
then these numbers are used to normalize the image. By default, min and max
then these numbers are used to normalize the image. By default, min and max
are computed from the tensor.
are computed from the tensor.
...
...
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