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
c163fc42
Unverified
Commit
c163fc42
authored
Sep 22, 2020
by
vfdev
Committed by
GitHub
Sep 22, 2020
Browse files
Update functional.py (#2685)
parent
cd4761f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-1
No files found.
torchvision/transforms/functional.py
View file @
c163fc42
...
@@ -107,7 +107,7 @@ def to_tensor(pic):
...
@@ -107,7 +107,7 @@ def to_tensor(pic):
def
pil_to_tensor
(
pic
):
def
pil_to_tensor
(
pic
):
"""Convert a ``PIL Image`` to a tensor of the same type.
"""Convert a ``PIL Image`` to a tensor of the same type.
See
``As
Tensor`
`
for more details.
See
:class:`~torchvision.transforms.PILTo
Tensor` for more details.
Args:
Args:
pic (PIL Image): Image to be converted to tensor.
pic (PIL Image): Image to be converted to 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