planner
AotMemoryPlanner API
This class is the base class for all memory planners in the HeliaAOT framework.
Classes:
-
AotMemoryPlanner–Base class for memory planners
Functions:
Copyright 2025 Ambiq. All Rights Reserved.
Classes
AirMemoryPlanner
Functions
plan
plan(model: AirModel, memory_constraints: list[MemoryConstraint] | None = None, tensor_constraints: list[AttributeRuleset] | None = None) -> MemoryPlan
Plan tensor memory allocation for the model.
Parameters:
-
(modelAirModel) –The target model.
-
(memory_constraintslist[MemoryConstraint] | None, default:None) –Memory constraints
-
(tensor_constraintslist[AttributeRuleset] | None, default:None) –Tensor constraints
Returns:
-
MemoryPlan(MemoryPlan) –The memory plan containing offsets and total size.
Functions
register_memory_planner
Class decorator: register each memory planner by its NAME.