Commit abcd4480 authored by Vishal Chiluka's avatar Vishal Chiluka
Browse files

NVOF-Cuda Bug Fix. Should not reset runtime context

parent e8916dae
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -578,11 +578,6 @@ void NvidiaOpticalFlowImpl::collectGarbage()
    {
        NVOF_API_CALL(GetAPI()->nvOFDestroy(m_hOF));
    }
    if (m_cuContext)
    {
        cuSafeCall(cudaDeviceReset());
        m_cuContext = nullptr;
    }
}

void NvidiaOpticalFlowImpl::upSampler(InputArray _flow, int width, int height,