Class ov::frontend::SequenceLength#

class SequenceLength : public ov::op::util::FrameworkNode#

SequenceLength is a helper operation that represents the length of a sequence. Emitted by frontends when the sequence input is not yet resolvable to a SequenceMark.

Inputs:

  • input_sequence: The input sequence.

Output:

  • Scalar int64 tensor with the number of elements in the sequence.

Public Functions

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.