Skip to content

Commit

Permalink
Fixes #2932 (#2937)
Browse files Browse the repository at this point in the history
- Replaced tuple creation by one acceptable by majority of compilers
  • Loading branch information
vfdev-5 authored Oct 30, 2020
1 parent 1fe1e11 commit c9d9e67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchvision/csrc/cpu/video/Video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit c9d9e67

Please sign in to comment.