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 9cfd430 commit d2c9349Copy full SHA for d2c9349
src/torchcodec/_core/CudaDeviceInterface.cpp
@@ -56,9 +56,9 @@ UniqueAVBufferRef getHardwareDeviceContext(const torch::Device& device) {
56
TORCH_CHECK(type != AV_HWDEVICE_TYPE_NONE, "Failed to find cuda device");
57
torch::DeviceIndex nonNegativeDeviceIndex = getNonNegativeDeviceIndex(device);
58
59
- UniqueAVBufferRef hw_device_ctx = g_cached_hw_device_ctxs.get(device);
60
- if (hw_device_ctx) {
61
- return hw_device_ctx;
+ UniqueAVBufferRef hardwareDeviceCtx = g_cached_hw_device_ctxs.get(device);
+ if (hardwareDeviceCtx) {
+ return hardwareDeviceCtx;
62
}
63
64
// Create hardware device context
0 commit comments