mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-22 07:31:26 +08:00
Merge pull request #1152 from dkurt:run_parallel_relu
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user