Files
opencv-MIRROR/modules/dnn
wzy712 0946969810 dnn: add ONNX ReverseSequence layer (#30591)
* dnn: add ONNX ReverseSequence layer

- new ReverseSequenceLayer: byte-wise block copy, works for any CV type and rank >= 2
- getTypes(): accept CV_16S as well, grouped by signed/unsigned/float families
- tests: CV_16S rank-2 / rank-3 block copy, both axis layouts, int32 sequence_lens,
  out-of-range sequence_lens must throw

# Conflicts:
#	modules/dnn/test/test_layers.cpp

* dnn: simplify ReverseSequence layer and tests

Parallelize over (batch, time) pairs, take byte strides from X.step, validate sequence_lens up front and drop the redundant type whitelist. Rework the layer test to check an independent reference implementation.

* dnn: reuse tensorToIntVec in ReverseSequence layer

Read sequence_lens through the shared helper and check its element count, so lengths are narrowed once. Compare the layer test against an index-based reference instead of duplicating the layer's stride computation.

* dnn: state supported opsets and skip ReverseSequence for OpenVINO

Drop the future-opsets claim in the layer header and mark the two conformance cases as skipped for the OpenVINO backend, following the Compress operator.

* dnn: add ReverseSequence to the ONNX importer dispatcher

Register an explicit parseReverseSequence() handler instead of relying on the generic custom-layer path. Drop the constant-only layer tests and fold the sequence_lens length check into the out-of-range test.
2026-11-20 08:41:11 +05:30
..