Class ov::op::v0::ReverseSequence#

class ReverseSequence : public ov::op::Op#

ReverseSequence operation.

Public Functions

ReverseSequence(const Output<Node> &arg, const Output<Node> &seq_lengths, int64_t batch_axis = 0, int64_t seq_axis = 1)#

Constructs a ReverseSequence operation.

Parameters:
  • arg – tensor with input data to reverse

  • seq_lengths – 1D tensor of integers with sequence lengths in the input tensor.

  • batch_axis – index of the batch dimension.

  • seq_axis – index of the sequence dimension.

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.