mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 21:22:43 -06:00
* dnn: fix CumProd crash when the scan axis has length 0 * dnn: use Mat::empty() for the CumProd empty-input check Return early from forwardImpl() when the input has no elements. The output already has the right empty shape. The check comes after normalize_axis(), so an out-of-range axis is still reported.