Skip to content

Commit 12d1f6c

Browse files
committed
Merge pull request #2421 from vchiluka5:nvof-bug-fix
2 parents e8916da + abcd448 commit 12d1f6c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

modules/cudaoptflow/src/nvidiaOpticalFlow.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,6 @@ void NvidiaOpticalFlowImpl::collectGarbage()
578578
{
579579
NVOF_API_CALL(GetAPI()->nvOFDestroy(m_hOF));
580580
}
581-
if (m_cuContext)
582-
{
583-
cuSafeCall(cudaDeviceReset());
584-
m_cuContext = nullptr;
585-
}
586581
}
587582

588583
void NvidiaOpticalFlowImpl::upSampler(InputArray _flow, int width, int height,

0 commit comments

Comments
 (0)