ReverseSequence

Description

Reverses a sequence batch based on the specified length.

Input

  • x: tensor of type float16 or float, with rank >= 2.
  • sequence_lens: tensor of type int64, specifying the length of each batch.

Output

y: output tensor of the identical data type and shape as input x.

Attribute

  • batch_axis: int, specifying the batch axis. The default value is 1.
  • time_axis: int, specifying the time axis. The default value is 1.

Constraints

None.

ONNX Opset Support

Opset v10/v11/v12/v13/v14/v15/v16/v17/v18