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

Wrap Inference Engine init to try-catch

This commit is contained in:
Dmitry Kurtaev
2018-06-05 17:18:14 +03:00
parent 3cbd2e2764
commit f3a6ae5f00
4 changed files with 60 additions and 29 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ public:
std::string halideScheduler = "",
double l1 = 0.0, double lInf = 0.0)
{
if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL)
if (backend == DNN_BACKEND_OPENCV && (target == DNN_TARGET_OPENCL || target == DNN_TARGET_OPENCL_FP16))
{
#ifdef HAVE_OPENCL
if (!cv::ocl::useOpenCL())