Skip to content

Commit df0e0d2

Browse files
committed
comments
1 parent c9e019d commit df0e0d2

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

src/torchcodec/_core/BetaCudaDeviceInterface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,6 @@ void BetaCudaDeviceInterface::convert_av_frame_to_frame_output(
10031003
// may round them up to even.
10041004
FrameDims original_dims(av_frame->height, av_frame->width);
10051005

1006-
// On the CPU fallback we own the GPU frame we just created; otherwise the
1007-
// input frame is already what we need, and it's only borrowed.
10081006
UniqueAVFrame transferred_frame;
10091007
if (cpu_fallback_) {
10101008
AVPixelFormat target_pix_fmt = (output_dtype_ == OutputDtype::FLOAT32)

src/torchcodec/_core/DeviceInterface.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ class DeviceInterface {
9898
return requested_dtype;
9999
}
100100

101-
// The caller retains ownership of the frame, and keeps using it after this
102-
// call returns (the building-block ops hand out frames that live in Python).
103-
// Implementations must not take ownership of it, and must not free it.
104-
// Implementations needing a different frame, e.g. after a format conversion,
105-
// must allocate their own and leave this one alone.
106101
virtual void convert_av_frame_to_frame_output(
107102
const UniqueAVFrame& av_frame,
108103
FrameOutput& frame_output,

0 commit comments

Comments
 (0)