We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3cebb3 commit 2171caeCopy full SHA for 2171cae
modules/dnn/src/dnn.cpp
@@ -2458,7 +2458,7 @@ struct Net::Impl : public detail::NetImplBase
2458
if( nextData )
2459
nextActivLayer = nextData->layerInstance.dynamicCast<ActivationLayer>();
2460
2461
- if( !nextActivLayer.empty() && pinsToKeep.count(lpNext) == 0 &&
+ if( !nextActivLayer.empty() &&
2462
(!nextData->type.compare("ReLU") ||
2463
!nextData->type.compare("ChannelsPReLU") ||
2464
!nextData->type.compare("Power")) &&
0 commit comments