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

Add acos, acosh, asin, asinh, atan, atanh, cos, cosh, erf, hardswish, sin, sinh, softplus, softsign, tan layers

This commit is contained in:
Smirnov Egor
2021-12-02 15:45:27 +03:00
parent db4ab1c936
commit 1bd382c1d0
13 changed files with 1449 additions and 29 deletions
@@ -648,6 +648,96 @@ CV__DNN_INLINE_NS_BEGIN
static Ptr<NotLayer> create(const LayerParams &params);
};
class CV_EXPORTS AcosLayer : public ActivationLayer
{
public:
static Ptr<AcosLayer> create(const LayerParams &params);
};
class CV_EXPORTS AcoshLayer : public ActivationLayer
{
public:
static Ptr<AcoshLayer> create(const LayerParams &params);
};
class CV_EXPORTS AsinLayer : public ActivationLayer
{
public:
static Ptr<AsinLayer> create(const LayerParams &params);
};
class CV_EXPORTS AsinhLayer : public ActivationLayer
{
public:
static Ptr<AsinhLayer> create(const LayerParams &params);
};
class CV_EXPORTS AtanLayer : public ActivationLayer
{
public:
static Ptr<AtanLayer> create(const LayerParams &params);
};
class CV_EXPORTS AtanhLayer : public ActivationLayer
{
public:
static Ptr<AtanhLayer> create(const LayerParams &params);
};
class CV_EXPORTS CosLayer : public ActivationLayer
{
public:
static Ptr<CosLayer> create(const LayerParams &params);
};
class CV_EXPORTS CoshLayer : public ActivationLayer
{
public:
static Ptr<CoshLayer> create(const LayerParams &params);
};
class CV_EXPORTS ErfLayer : public ActivationLayer
{
public:
static Ptr<ErfLayer> create(const LayerParams &params);
};
class CV_EXPORTS HardSwishLayer : public ActivationLayer
{
public:
static Ptr<HardSwishLayer> create(const LayerParams &params);
};
class CV_EXPORTS SinLayer : public ActivationLayer
{
public:
static Ptr<SinLayer> create(const LayerParams &params);
};
class CV_EXPORTS SinhLayer : public ActivationLayer
{
public:
static Ptr<SinhLayer> create(const LayerParams &params);
};
class CV_EXPORTS SoftplusLayer : public ActivationLayer
{
public:
static Ptr<SoftplusLayer> create(const LayerParams &params);
};
class CV_EXPORTS SoftsignLayer : public ActivationLayer
{
public:
static Ptr<SoftsignLayer> create(const LayerParams &params);
};
class CV_EXPORTS TanLayer : public ActivationLayer
{
public:
static Ptr<TanLayer> create(const LayerParams &params);
};
class CV_EXPORTS ActivationLayerInt8 : public ActivationLayer
{
public: