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
f554f2d6
Unverified
Commit
f554f2d6
authored
Jun 23, 2020
by
joerg-de
Committed by
GitHub
Jun 23, 2020
Browse files
added fill to __repr__ of RandomRotation (#2340)
parent
b6f55ed8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+2
-0
No files found.
torchvision/transforms/transforms.py
View file @
f554f2d6
...
@@ -1081,6 +1081,8 @@ class RandomRotation(object):
...
@@ -1081,6 +1081,8 @@ class RandomRotation(object):
format_string
+=
', expand={0}'
.
format
(
self
.
expand
)
format_string
+=
', expand={0}'
.
format
(
self
.
expand
)
if
self
.
center
is
not
None
:
if
self
.
center
is
not
None
:
format_string
+=
', center={0}'
.
format
(
self
.
center
)
format_string
+=
', center={0}'
.
format
(
self
.
center
)
if
self
.
fill
is
not
None
:
format_string
+=
', fill={0}'
.
format
(
self
.
fill
)
format_string
+=
')'
format_string
+=
')'
return
format_string
return
format_string
...
...
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