Merge pull request #22199 from zihaomu:bug_fix_22195

DNN: Reduce Layer (add dynamic batch and ReduceSum support)
This commit is contained in:
Alexander Smorkalov
2022-08-11 12:59:51 +03:00
committed by GitHub
5 changed files with 82 additions and 37 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);
};