diff --git a/modules/dnn/src/layers/cumsum_layer.cpp b/modules/dnn/src/layers/cumsum_layer.cpp index d7b028ac5f..50533a1c2a 100644 --- a/modules/dnn/src/layers/cumsum_layer.cpp +++ b/modules/dnn/src/layers/cumsum_layer.cpp @@ -36,7 +36,7 @@ public: std::vector &outputs, std::vector &internals) const CV_OVERRIDE { - Layer::getMemoryShapes(inputs, requiredOutputs, outputs, internals); + outputs.assign(1, inputs[0]); return exclusive_raw == 0; } diff --git a/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp b/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp index 46e6052b1f..bceebe472e 100644 --- a/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp +++ b/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp @@ -438,11 +438,3 @@ "test_unsqueeze_three_axes", // ---- same as above --- "test_unsqueeze_two_axes", // ---- same as above ---) "test_unsqueeze_unsorted_axes", // ---- same as above ---) -// // Cumsum related issue: https://github.com/opencv/opencv/issues/24437 -"test_cumsum_1d", //Issue:: output shape creation mismatch -"test_cumsum_1d_exclusive", // ---- same as above --- -"test_cumsum_1d_reverse", // ---- same as above --- -"test_cumsum_1d_reverse_exclusive", // ---- same as above --- -"test_cumsum_2d_axis_0", // ---- same as above --- -"test_cumsum_2d_axis_1", // ---- same as above --- -"test_cumsum_2d_negative_axis", // ---- same as above ---