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
c9d9e67e
Unverified
Commit
c9d9e67e
authored
Oct 30, 2020
by
vfdev
Committed by
GitHub
Oct 30, 2020
Browse files
Fixes #2932 (#2937)
- Replaced tuple creation by one acceptable by majority of compilers
parent
1fe1e110
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
torchvision/csrc/cpu/video/Video.cpp
torchvision/csrc/cpu/video/Video.cpp
+1
-2
No files found.
torchvision/csrc/cpu/video/Video.cpp
View file @
c9d9e67e
...
...
@@ -334,6 +334,5 @@ std::tuple<torch::Tensor, double> Video::Next() {
LOG
(
ERROR
)
<<
"Decoder failed with ERROR_CODE "
<<
res
;
}
std
::
tuple
<
torch
::
Tensor
,
double
>
result
=
{
outFrame
,
frame_pts_s
};
return
result
;
return
std
::
make_tuple
(
outFrame
,
frame_pts_s
);
}
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