From 759fc701ab0d33a20b068a881ad877160b108bd6 Mon Sep 17 00:00:00 2001 From: Alexander Lyulkov Date: Fri, 14 Jun 2024 13:02:57 +0300 Subject: [PATCH] Fixed cumsum layer, enablem conformance tests --- modules/dnn/src/layers/cumsum_layer.cpp | 2 +- .../test_onnx_conformance_layer_parser_denylist.inl.hpp | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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 ---