Commit abcd4480 authored by Vishal Chiluka's avatar Vishal Chiluka

NVOF-Cuda Bug Fix. Should not reset runtime context

parent e8916dae
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment