Skip to content

Commit eca6062

Browse files
committed
Enabled parallel computation of ReLU activation layer
1 parent c42beb4 commit eca6062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dnn/src/layers/elementwise_layers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Ptr<_Layer> _Layer::create() { \
224224
Ptr<ReLULayer> ReLULayer::create(const LayerParams& params)
225225
{
226226
float negativeSlope = params.get<float>("negative_slope", 0.f);
227-
Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(false, ReLUFunctor(negativeSlope)));
227+
Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(true, ReLUFunctor(negativeSlope)));
228228
l->setParamsFrom(params);
229229

230230
return l;

0 commit comments

Comments
 (0)