Skip to content

Commit

Permalink
Merge pull request opencv#1152 from dkurt:run_parallel_relu
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed May 23, 2017
2 parents bb937e5 + eca6062 commit b110661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dnn/src/layers/elementwise_layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Ptr<_Layer> _Layer::create() { \
Ptr<ReLULayer> ReLULayer::create(const LayerParams& params)
{
float negativeSlope = params.get<float>("negative_slope", 0.f);
Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(false, ReLUFunctor(negativeSlope)));
Ptr<ReLULayer> l(new ElementWiseLayer<ReLUFunctor>(true, ReLUFunctor(negativeSlope)));
l->setParamsFrom(params);

return l;
Expand Down

0 comments on commit b110661

Please sign in to comment.