1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 15:26:00 +08:00

NVOF-Cuda Bug Fix. Should not reset runtime context

This commit is contained in:
Vishal Chiluka
2020-02-06 10:36:25 +05:30
parent e8916dae98
commit abcd448094

View File

@@ -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,