Files
opencv-MIRROR/modules/dnn
Mohammad Sohail Shaikh d73b2f9c87 dnn: fix Reduce over three or more axes (#30781)
* dnn: fix Reduce over three or more axes

Port of #30108 (5.x, reduce2_layer.cpp) to the 4.x Reduce layer.

ReduceInvoker walks the reduced block with an odometer over every reduced axis but the innermost one. On a carry it assigned the step of the next outer axis (j - 1) instead of removing the offset of the axis that wrapped and adding one step of the next. projected_steps is shared by all output elements, so once an outer reduced axis has three or more elements every output was wrong. Carry the same way as the unprojected axes below. This also makes test_mvn_expanded pass, so it is removed from the parser denylist.

* dnn: parameterize the Reduce multi-axis regression test

Pass each (sizes, axes) case to TEST_P instead of looping inside one TEST.
2026-11-13 17:21:33 +05:30
..