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.
2 parents bb937e5 + eca6062 commit b110661Copy full SHA for b110661
modules/dnn/src/layers/elementwise_layers.cpp
@@ -224,7 +224,7 @@ Ptr<_Layer> _Layer::create() { \
224
Ptr<ReLULayer> ReLULayer::create(const LayerParams& params)
225
{
226
float negativeSlope = params.get<float>("negative_slope", 0.f);
227
- Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(false, ReLUFunctor(negativeSlope)));
+ Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(true, ReLUFunctor(negativeSlope)));
228
l->setParamsFrom(params);
229
230
return l;
0 commit comments