mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
add celu, hardsigmoid, selu, thresholdedrelu layers
This commit is contained in:
@@ -738,6 +738,40 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
static Ptr<TanLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CeluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
|
||||
static Ptr<CeluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS HardSigmoidLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
float beta;
|
||||
|
||||
static Ptr<HardSigmoidLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SeluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
float gamma;
|
||||
|
||||
static Ptr<SeluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS ThresholdedReluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
|
||||
static Ptr<ThresholdedReluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS ActivationLayerInt8 : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user