aot_model
AotModel API
The AotModel
class is responsible for converting a LiteRT model into an AOT (Ahead-Of-Time) inference C module.
Classes:
-
AotModel
–Represents the AOT model conversion process.
Copyright 2025 Ambiq. All Rights Reserved.
Classes
AotModel
AOT model
This class is responsible for generating the C inference module for the model.
Parameters:
-
config
ConvertArgs
) –Configuration object containing parameters for conversion.
Attributes
Functions
initialize
Initialize the AOT model.
This method sets up the module directory structure, initializes operators, and memory planner.
fuse_and_transform_operators
Perform operator fusion and transformation.
This method applies operator fusion and other transformations to the model graph.
generate_operator_source_code
Generates the C source code for all operators.
This method creates the source code files for each operator in the model.