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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user