converter
AotModel API
The AotConverter
class is responsible for converting a model into an AOT inference C module.
Classes:
-
AotConverter
–Performs the AOT conversion process.
Copyright 2025 Ambiq. All Rights Reserved.
Classes
AotConverter
Initialize the AOT converter.
This class is responsible for converting a model into an AOT inference C module.
Parameters:
-
config
ConvertArgs
) –Conversion parameters.
Functions
convert
Convert the model to an AOT module.
The conversion process consists of six stages
- Load (Backend → AIR)
- Transform (Graph-Level Optimizations)
- Resolve (Final AIR Structure)
- Plan (Memory & Handler Planning)
- Emit (Code Generation)
- Export (Module Export)
Returns:
-
CodeGenContext
(CodeGenContext
) –Code generation context.