SequenceLength#

SequenceLength - 11#

Version

  • name: SequenceLength (GitHub)

  • domain: main

  • since_version: 11

  • function:

  • support_level: SupportType.COMMON

  • shape inference: True

This version of the operator has been available since version 11.

Summary

Inputs

  • input_sequence (heterogeneous) - S:

Outputs

  • length (heterogeneous) - I:

Type Constraints

  • S in ( seq(tensor(bool)), seq(tensor(complex128)), seq(tensor(complex64)), seq(tensor(double)), seq(tensor(float)), seq(tensor(float16)), seq(tensor(int16)), seq(tensor(int32)), seq(tensor(int64)), seq(tensor(int8)), seq(tensor(string)), seq(tensor(uint16)), seq(tensor(uint32)), seq(tensor(uint64)), seq(tensor(uint8)) ): Constrain to any tensor type.

  • I in ( tensor(int64) ): Constrain output to integral tensor. It must be a scalar(tensor of empty shape).

Examples