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.
1 parent 8019219 commit dc40ad6Copy full SHA for dc40ad6
src/torchcodec/decoders/_core/CudaDevice.cpp
@@ -240,11 +240,6 @@ void convertAVFrameToDecodedOutputOnCuda(
240
std::chrono::duration<double, std::micro> duration = end - start;
241
VLOG(9) << "NPP Conversion of frame height=" << height << " width=" << width
242
<< " took: " << duration.count() << "us" << std::endl;
243
- if (options.dimensionOrder == "NCHW") {
244
- // The docs guaranty this to return a view:
245
- // https://pytorch.org/docs/stable/generated/torch.permute.html
246
- dst = dst.permute({2, 0, 1});
247
- }
248
}
249
250
} // namespace facebook::torchcodec
0 commit comments