Skip to content

Commit 1df533c

Browse files
committed
fix typo in fusion tests
1 parent 44bf748 commit 1df533c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/dnn/test/test_layers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,7 +2343,7 @@ TEST_P(ConvolutionEltwiseActivationFusion, Accuracy)
23432343
if (eltwiseOp != "sum" && weightedEltwise)
23442344
throw SkipTestException("weighted eltwise not supported");
23452345
LayerParams eltwiseParams;
2346-
TestLayerFusion::makeDefaultTestEltwiseLayer(eltwiseParams, eltwiseOp, false);
2346+
TestLayerFusion::makeDefaultTestEltwiseLayer(eltwiseParams, eltwiseOp, weightedEltwise);
23472347

23482348
std::string actType = get<3>(GetParam());
23492349
LayerParams activationParams;
@@ -2353,7 +2353,7 @@ TEST_P(ConvolutionEltwiseActivationFusion, Accuracy)
23532353
Target targetId = get<1>(get<4>(GetParam()));
23542354

23552355
// bug: https://github.com/opencv/opencv/issues/17945
2356-
if (eltwiseOp != "sum" && backendId == DNN_BACKEND_OPENCV && (targetId == DNN_TARGET_OPENCL || targetId == DNN_TARGET_OPENCL_FP16))
2356+
if ((eltwiseOp != "sum" || weightedEltwise) && backendId == DNN_BACKEND_OPENCV && (targetId == DNN_TARGET_OPENCL || targetId == DNN_TARGET_OPENCL_FP16))
23572357
applyTestTag(CV_TEST_TAG_DNN_SKIP_OPENCL);
23582358

23592359
// bug: https://github.com/opencv/opencv/issues/17953
@@ -2440,7 +2440,7 @@ TEST_P(ConvolutionActivationEltwiseFusion, Accuracy)
24402440
if (eltwiseOp != "sum" && weightedEltwise)
24412441
throw SkipTestException("weighted eltwise not supported");
24422442
LayerParams eltwiseParams;
2443-
TestLayerFusion::makeDefaultTestEltwiseLayer(eltwiseParams, eltwiseOp, false);
2443+
TestLayerFusion::makeDefaultTestEltwiseLayer(eltwiseParams, eltwiseOp, weightedEltwise);
24442444

24452445
Backend backendId = get<0>(get<4>(GetParam()));
24462446
Target targetId = get<1>(get<4>(GetParam()));

0 commit comments

Comments
 (0)