handler
Classes
AotHandler
Base class for all AOT code-generation handlers.
Lifecycle
The lifecycle of an AOT handler consists of three main stages:
- resolve() — inspect AIR, add any scratch tensors, choose kernels
- plan() — (optional) adjust memory plan or other per-handler scheduling
- emit() — write out headers, C sources, assets, etc.
Base class for AOT handlers.
Parameters:
-
context
CodeGenContext
) –Code generation context
Functions
emit
abstractmethod
Generate artifacts for the AOT handler.
Parameters:
-
save_path
Path
) –The path where the generated code will be saved.