1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +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
@@ -34,7 +34,7 @@ public:
void processNet(std::string weights, std::string proto, std::string halide_scheduler,
const Mat& input, const std::string& outputLayer = "")
{
if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL)
if (backend == DNN_BACKEND_OPENCV && (target == DNN_TARGET_OPENCL || target == DNN_TARGET_OPENCL_FP16))
{
#if defined(HAVE_OPENCL)
if (!cv::ocl::useOpenCL())