1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

support ReduceLayer without reshape layer.

This commit is contained in:
Zihao Mu
2022-08-02 10:32:31 +08:00
parent 98c33c605d
commit d4640f4647
5 changed files with 55 additions and 34 deletions
@@ -334,7 +334,8 @@ CV__DNN_INLINE_NS_BEGIN
{
public:
int reduceType;
std::vector<size_t> reduceDims;
// reduceDims contains the dimensions that need to be reduced, targetDims is the target output dimension.
std::vector<size_t> reduceDims, targetDims;
static Ptr<ReduceLayer> create(const LayerParams& params);
};