We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5193a9 + a8299be commit c5e1bc3Copy full SHA for c5e1bc3
src/torchcodec/decoders/_core/VideoDecoderOps.cpp
@@ -236,11 +236,6 @@ OpsFrameOutput get_next_frame(at::Tensor& decoder) {
236
} catch (const VideoDecoder::EndOfFileException& e) {
237
C10_THROW_ERROR(IndexError, e.what());
238
}
239
- if (result.data.sizes().size() != 3) {
240
- throw std::runtime_error(
241
- "image_size is unexpected. Expected 3, got: " +
242
- std::to_string(result.data.sizes().size()));
243
- }
244
return makeOpsFrameOutput(result);
245
246
0 commit comments