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
7f55738e
Unverified
Commit
7f55738e
authored
Apr 28, 2022
by
Philip Meier
Committed by
GitHub
Apr 28, 2022
Browse files
remove custom __repr__ from prototype features (#5916)
parent
734ee253
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
torchvision/prototype/features/_feature.py
torchvision/prototype/features/_feature.py
+0
-3
No files found.
torchvision/prototype/features/_feature.py
View file @
7f55738e
...
@@ -83,6 +83,3 @@ class _Feature(torch.Tensor):
...
@@ -83,6 +83,3 @@ class _Feature(torch.Tensor):
return
cls
.
new_like
(
args
[
0
],
output
,
dtype
=
output
.
dtype
,
device
=
output
.
device
)
return
cls
.
new_like
(
args
[
0
],
output
,
dtype
=
output
.
dtype
,
device
=
output
.
device
)
else
:
else
:
return
output
return
output
def
__repr__
(
self
)
->
str
:
return
cast
(
str
,
torch
.
Tensor
.
__repr__
(
self
)).
replace
(
"tensor"
,
type
(
self
).
__name__
)
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