Skip to content

resize_bilinear

AOT operator for RESIZE_BILINEAR.

Classes

ResizeBilinearOperator

ResizeBilinearOperator(op: AirOperator, model: AirModel, platform: SocPlatform, prefix: str = 'aot', attributes: dict[str, str] = {})

Resize Bilinear operator — upsamples/downsamples using bilinear interpolation.

Resize Bilinear 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.

  • attributes

    (dict[str, str], default: {} ) –

    Attributes for template values.

Functions

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

Compute template values for the operator.

validate
validate()

Validate operator configuration.

on_resolve
on_resolve()

Resolve operator — validate configuration.

emit
emit(save_path: Path)

Generate the source code for the operator.

Parameters:

  • save_path
    (Path) –

    Path to save the generated code.

Functions