Skip to content

Commit 8db65b1

Browse files
fmassavfdev-5
andauthored
Fixes #2932 (#2937) (#3010)
- Replaced tuple creation by one acceptable by majority of compilers Co-authored-by: vfdev <[email protected]>
1 parent 98521c7 commit 8db65b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchvision/csrc/cpu/video/Video.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,5 @@ std::tuple<torch::Tensor, double> Video::Next() {
334334
LOG(ERROR) << "Decoder failed with ERROR_CODE " << res;
335335
}
336336

337-
std::tuple<torch::Tensor, double> result = {outFrame, frame_pts_s};
338-
return result;
337+
return std::make_tuple(outFrame, frame_pts_s);
339338
}

0 commit comments

Comments
 (0)