Skip to content

Commit a8299be

Browse files
authored
Remove unnecessary output check (#508)
1 parent 0f50aba commit a8299be

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/torchcodec/decoders/_core/VideoDecoderOps.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,6 @@ OpsFrameOutput get_next_frame(at::Tensor& decoder) {
237237
} catch (const VideoDecoder::EndOfFileException& e) {
238238
C10_THROW_ERROR(IndexError, e.what());
239239
}
240-
if (result.data.sizes().size() != 3) {
241-
throw std::runtime_error(
242-
"image_size is unexpected. Expected 3, got: " +
243-
std::to_string(result.data.sizes().size()));
244-
}
245240
return makeOpsFrameOutput(result);
246241
}
247242

0 commit comments

Comments
 (0)