add ONNX OP sign, shrink and reciprocal

This commit is contained in:
zihaomu
2022-04-07 15:32:12 +08:00
parent 9aa647068b
commit e36948cfbc
10 changed files with 284 additions and 7 deletions
@@ -794,6 +794,26 @@ CV__DNN_INLINE_NS_BEGIN
static Ptr<ActivationLayerInt8> create(const LayerParams &params);
};
class CV_EXPORTS SignLayer : public ActivationLayer
{
public:
static Ptr<SignLayer> create(const LayerParams &params);
};
class CV_EXPORTS ShrinkLayer : public ActivationLayer
{
public:
float bias;
float lambd;
static Ptr<ShrinkLayer> create(const LayerParams &params);
};
class CV_EXPORTS ReciprocalLayer : public ActivationLayer
{
public:
static Ptr<ReciprocalLayer> create(const LayerParams &params);
};
/* Layers used in semantic segmentation */
class CV_EXPORTS CropLayer : public Layer