Skip to content

Commit d2c9349

Browse files
author
Molly Xu
committed
renamed hw_device_ctx to hardwareDeviceCtx_
1 parent 9cfd430 commit d2c9349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/_core/CudaDeviceInterface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ UniqueAVBufferRef getHardwareDeviceContext(const torch::Device& device) {
5656
TORCH_CHECK(type != AV_HWDEVICE_TYPE_NONE, "Failed to find cuda device");
5757
torch::DeviceIndex nonNegativeDeviceIndex = getNonNegativeDeviceIndex(device);
5858

59-
UniqueAVBufferRef hw_device_ctx = g_cached_hw_device_ctxs.get(device);
60-
if (hw_device_ctx) {
61-
return hw_device_ctx;
59+
UniqueAVBufferRef hardwareDeviceCtx = g_cached_hw_device_ctxs.get(device);
60+
if (hardwareDeviceCtx) {
61+
return hardwareDeviceCtx;
6262
}
6363

6464
// Create hardware device context

0 commit comments

Comments
 (0)