passes
Frontend LiteRT pass helpers used before AIR conversion.
Functions
apply_litert_model_hooks
apply_litert_model_hooks(model: 'litert.ModelT', *, model_path: Path, subgraph_index: int, hooks: list[LiteRtModelHook]) -> 'litert.ModelT'
Apply frontend-specific LiteRT hooks before AIR conversion.
Hooks may mutate the ModelT in place or return a replacement model.
They run before the selected subgraph is flattened into AIR, so they can
inspect and rewrite cross-subgraph control-flow structures such as WHILE.