Merge pull request #2421 from vchiluka5:nvof-bug-fix

pull/2436/head
Alexander Alekhin 5 years ago
commit 12d1f6c4df
  1. 5
      modules/cudaoptflow/src/nvidiaOpticalFlow.cpp

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

Loading…
Cancel
Save