mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +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));
|
NVOF_API_CALL(GetAPI()->nvOFDestroy(m_hOF));
|
||||||
}
|
}
|
||||||
if (m_cuContext)
|
|
||||||
{
|
|
||||||
cuSafeCall(cudaDeviceReset());
|
|
||||||
m_cuContext = nullptr;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NvidiaOpticalFlowImpl::upSampler(InputArray _flow, int width, int height,
|
void NvidiaOpticalFlowImpl::upSampler(InputArray _flow, int width, int height,
|
||||||
|
Reference in New Issue
Block a user