Skip to content

reverse_sequence

Classes

ReverseSequenceOperator

ReverseSequenceOperator(op: AirOperator, model: AirModel, platform: SocPlatform, prefix: str = 'aot', attributes: dict[str, str] | None = None)

REVERSE_SEQUENCE operator.

Parameters:

  • op

    (AirOperator) –

    The AIR operator to wrap.

  • model

    (AirModel) –

    The AIR model.

  • platform

    (SocPlatform) –

    The target platform for code generation.

  • prefix

    (str, default: 'aot' ) –

    Prefix for generated code files. Defaults to "aot".

  • attributes

    (dict[str, str] | None, default: None ) –

    Attributes for template values.

Functions

validate
validate()

Validate REVERSE_SEQUENCE against supported kernel and TFLite invariants.

compute_values
compute_values() -> dict[str, Any]

Compute values for REVERSE_SEQUENCE code generation.

emit
emit(save_path: Path)

Generate the source code for the operator.

Functions