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
c4f77c24
Unverified
Commit
c4f77c24
authored
Apr 26, 2020
by
Francisco Massa
Committed by
GitHub
Apr 26, 2020
Browse files
Fix corner case in interpolate (#2146)
parent
3e60fb29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/ops/misc.py
torchvision/ops/misc.py
+1
-1
No files found.
torchvision/ops/misc.py
View file @
c4f77c24
...
@@ -113,7 +113,7 @@ def interpolate(input, size=None, scale_factor=None, mode="nearest", align_corne
...
@@ -113,7 +113,7 @@ def interpolate(input, size=None, scale_factor=None, mode="nearest", align_corne
)
)
output_shape
=
_output_size
(
2
,
input
,
size
,
scale_factor
)
output_shape
=
_output_size
(
2
,
input
,
size
,
scale_factor
)
output_shape
=
list
(
input
.
shape
[:
-
2
])
+
output_shape
output_shape
=
list
(
input
.
shape
[:
-
2
])
+
list
(
output_shape
)
return
_new_empty_tensor
(
input
,
output_shape
)
return
_new_empty_tensor
(
input
,
output_shape
)
...
...
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