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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user