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

dnn: expand refactor with cv::broadcast for onnx models (#24295)

* add expand impl with cv::broadcast

* remove expandMid

* deduce shape from -1

* add constant folding

* handle input constant; handle input constant 1d

* add expand conformance tests; add checks to disallow shape of neg values; add early copy for unchanged total elements

* fix ExpandSubgraph

* dummy commit to trigger build

* dummy commit to trigger build 1

* remove conformance from test names
This commit is contained in:
Yuantao Feng
2023-09-27 01:28:52 -05:00
committed by GitHub
parent 9942757bab
commit bb171a0c05
6 changed files with 342 additions and 153 deletions
@@ -1144,6 +1144,12 @@ CV__DNN_INLINE_NS_BEGIN
static Ptr<GemmLayer> create(const LayerParams& params);
};
class CV_EXPORTS ExpandLayer : public Layer
{
public:
static Ptr<ExpandLayer> create(const LayerParams &params);
};
//! @}
//! @}
CV__DNN_INLINE_NS_END