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

Merge pull request #21601 from zihaomu:add_reduceLayer

This commit is contained in:
Alexander Alekhin
2022-03-26 10:20:10 +00:00
8 changed files with 796 additions and 197 deletions
@@ -325,6 +325,20 @@ CV__DNN_INLINE_NS_BEGIN
static Ptr<PoolingLayerInt8> create(const LayerParams& params);
};
class CV_EXPORTS ReduceLayer : public Layer
{
public:
int reduceType;
std::vector<size_t> reduceDims;
static Ptr<ReduceLayer> create(const LayerParams& params);
};
class CV_EXPORTS ReduceLayerInt8 : public ReduceLayer
{
public:
static Ptr<ReduceLayerInt8> create(const LayerParams& params);
};
class CV_EXPORTS SoftmaxLayer : public Layer
{
public: