1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Reset OpenCL kernels if batch size changes

This commit is contained in:
Dmitry Kurtaev
2018-03-07 16:56:41 +03:00
parent 0a61ebdd66
commit 0f01b40dd5
6 changed files with 34 additions and 8 deletions
@@ -273,6 +273,9 @@ public:
for(int i = 0; i < outCn; i++ )
biasvec[i] = biasMat.at<float>(i);
}
#ifdef HAVE_OPENCL
convolutionOp.release();
#endif
}
bool setActivation(const Ptr<ActivationLayer>& layer)