NVOF-Cuda Bug Fix. Should not reset runtime context

pull/2421/head
Vishal Chiluka 5 years ago
parent e8916dae98
commit abcd448094
  1. 5
      modules/cudaoptflow/src/nvidiaOpticalFlow.cpp

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

Loading…
Cancel
Save