1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Port Swish and Mish layers

This commit is contained in:
thebhatman
2019-12-01 11:00:58 +03:00
committed by Dmitry Kurtaev
parent f5b9705c70
commit 8a18d132fc
5 changed files with 189 additions and 1 deletions
@@ -462,6 +462,18 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
static Ptr<TanHLayer> create(const LayerParams &params);
};
class CV_EXPORTS SwishLayer : public ActivationLayer
{
public:
static Ptr<SwishLayer> create(const LayerParams &params);
};
class CV_EXPORTS MishLayer : public ActivationLayer
{
public:
static Ptr<MishLayer> create(const LayerParams &params);
};
class CV_EXPORTS SigmoidLayer : public ActivationLayer
{
public: