Skip to content

Commit dc40ad6

Browse files
committed
Fix CUDA tests?
1 parent 8019219 commit dc40ad6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/torchcodec/decoders/_core/CudaDevice.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ void convertAVFrameToDecodedOutputOnCuda(
240240
std::chrono::duration<double, std::micro> duration = end - start;
241241
VLOG(9) << "NPP Conversion of frame height=" << height << " width=" << width
242242
<< " 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-
}
248243
}
249244

250245
} // namespace facebook::torchcodec

0 commit comments

Comments
 (0)