From b068d26fad1de316de4d6357e38afcf2193f6e32 Mon Sep 17 00:00:00 2001 From: Liubov Batanina Date: Thu, 7 Feb 2019 11:52:27 +0300 Subject: [PATCH] Using IE backend for normalize layer tests --- modules/dnn/src/layers/normalize_bbox_layer.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/dnn/src/layers/normalize_bbox_layer.cpp b/modules/dnn/src/layers/normalize_bbox_layer.cpp index 4766f1704e..b5d98e0054 100644 --- a/modules/dnn/src/layers/normalize_bbox_layer.cpp +++ b/modules/dnn/src/layers/normalize_bbox_layer.cpp @@ -65,16 +65,12 @@ public: { if (backendId == DNN_BACKEND_INFERENCE_ENGINE) { - if (pnorm != 2) + if (!(pnorm == 2 || pnorm == 1)) { return false; - if (!blobs.empty()) - return true; - if (preferableTarget == DNN_TARGET_MYRIAD) - return !acrossSpatial; - return startAxis == 1 && (!acrossSpatial || endAxis > 1); + } + return preferableTarget == DNN_TARGET_MYRIAD ? !acrossSpatial : startAxis == 1; } - else - return backendId == DNN_BACKEND_OPENCV; + return backendId == DNN_BACKEND_OPENCV; } bool getMemoryShapes(const std::vector &inputs,