Files
opencv-MIRROR/modules/dnn/src
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
..
2026-02-20 22:05:35 +03:00
2022-10-07 16:57:31 +00:00
2022-10-07 16:57:31 +00:00
2022-01-18 01:22:22 +03:00
2022-03-19 06:54:07 +00:00
2022-10-07 16:57:31 +00:00
2026-07-29 20:19:40 +05:30
2025-06-10 10:16:50 +03:00
2021-03-10 15:59:26 +00:00
2026-03-19 11:29:57 +03:00
2026-01-06 22:57:02 +08:00
2022-03-08 19:22:46 +00:00
2024-03-18 15:05:50 +04:00
2024-07-17 10:08:16 +03:00