aot_memory_planner
AotMemoryPlanner API
This class is the base class for all memory planners in the HeliosAOT framework.
Classes:
-
AotMemoryPlanner
–Base class for memory planners
Functions:
Copyright 2025 Ambiq. All Rights Reserved.
Classes
AotMemoryPlanner
Functions
plan_memory
Allocate offsets for each tensor in a shared buffer using a first-fit algorithm that reuses gaps from tensors whose lifetimes have ended. This version also merges contiguous free blocks, and if the last free block aligns with the current offset, that block will be used for allocation.
Returns:
Functions
register_memory_planner
Class decorator: register each memory planner by its NAME.