Skip to content

Commit 2171cae

Browse files
authored
Merge pull request opencv#17976 from YashasSamaga:dnn-fusion-tests-fix-ocl
dnn: add exhaustive fusion tests, enable more eltwise fusions * add eltwise fusion tests, enable more eltwise fusions * merge weighted eltwise tests with eltwise tests
1 parent f3cebb3 commit 2171cae

File tree

2 files changed

+433
-1
lines changed

2 files changed

+433
-1
lines changed

modules/dnn/src/dnn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ struct Net::Impl : public detail::NetImplBase
24582458
if( nextData )
24592459
nextActivLayer = nextData->layerInstance.dynamicCast<ActivationLayer>();
24602460

2461-
if( !nextActivLayer.empty() && pinsToKeep.count(lpNext) == 0 &&
2461+
if( !nextActivLayer.empty() &&
24622462
(!nextData->type.compare("ReLU") ||
24632463
!nextData->type.compare("ChannelsPReLU") ||
24642464
!nextData->type.compare("Power")) &&

0 commit comments

Comments
 (0)