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
6d774c6f
Unverified
Commit
6d774c6f
authored
Oct 13, 2022
by
vfdev
Committed by
GitHub
Oct 13, 2022
Browse files
Fixed repr for ElasticTransform (#6758)
Co-authored-by:
Vasilis Vryniotis
<
datumbox@users.noreply.github.com
>
parent
b16dec19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+5
-5
No files found.
torchvision/transforms/transforms.py
View file @
6d774c6f
...
...
@@ -2133,9 +2133,9 @@ class ElasticTransform(torch.nn.Module):
return
F
.
elastic_transform
(
tensor
,
displacement
,
self
.
interpolation
,
self
.
fill
)
def
__repr__
(
self
):
format_string
=
self
.
__class__
.
__name__
+
"(alpha="
format_string
+=
str
(
self
.
alpha
)
+
")
"
format_string
+=
",
(
sigma=
"
+
str
(
self
.
sigma
)
+
")
"
format_string
+=
", interpolation={self.interpolation}"
format_string
+=
", fill={self.fill})"
format_string
=
self
.
__class__
.
__name__
format_string
+=
f
"(alpha=
{
self
.
alpha
}
"
format_string
+=
f
", sigma=
{
self
.
sigma
}
"
format_string
+=
f
", interpolation=
{
self
.
interpolation
}
"
format_string
+=
f
", fill=
{
self
.
fill
}
)"
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