From 714b38360f2fbb01c6c4a77829067472a43ca47f Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Mon, 25 Mar 2019 12:49:02 +0300 Subject: [PATCH] Extend LRN layer support with IE backend --- modules/dnn/src/layers/lrn_layer.cpp | 2 +- modules/dnn/test/test_halide_layers.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/dnn/src/layers/lrn_layer.cpp b/modules/dnn/src/layers/lrn_layer.cpp index c101d30414..21daa9f65f 100644 --- a/modules/dnn/src/layers/lrn_layer.cpp +++ b/modules/dnn/src/layers/lrn_layer.cpp @@ -91,7 +91,7 @@ public: virtual bool supportBackend(int backendId) CV_OVERRIDE { if (backendId == DNN_BACKEND_INFERENCE_ENGINE) - return (bias == 1) && (preferableTarget != DNN_TARGET_MYRIAD || type == SPATIAL_NRM); + return bias == 1; return backendId == DNN_BACKEND_OPENCV || backendId == DNN_BACKEND_HALIDE; } diff --git a/modules/dnn/test/test_halide_layers.cpp b/modules/dnn/test/test_halide_layers.cpp index bb605c05bc..0e70dc4c49 100644 --- a/modules/dnn/test/test_halide_layers.cpp +++ b/modules/dnn/test/test_halide_layers.cpp @@ -228,6 +228,10 @@ TEST_P(LRN, Accuracy) Backend backendId = get<0>(get<5>(GetParam())); Target targetId = get<1>(get<5>(GetParam())); + if ((inSize.width == 5 || inSize.height == 5) && targetId == DNN_TARGET_MYRIAD && + nrmType == "ACROSS_CHANNELS") + throw SkipTestException("This test case is disabled"); + LayerParams lp; lp.set("norm_region", nrmType); lp.set("local_size", localSize);