Skip to content
heliaAOT
API Reference
HELIA HUB

TensorAllocation

Machine-readable model

class

Metadata for a tensor allocation.

helia_aot/memory/defines.py:182

TensorAllocation()

Metadata for a tensor allocation.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

attribute

memory

Python

helia_aot/memory/defines.py:203

memory: MemoryType = Field(..., description='Memory type for the allocation')

Memory type for the allocation (runtime / kernel-visible memory of the arena slot)

attribute

binding

Python

helia_aot/memory/defines.py:206

binding: TensorBinding | None = Field(default=None, description="Planner-assigned binding describing how this tensor's storage is materialized.")

Planner’s binding describing (role, memory, offset, source_memory) for the slot. Defaults to None for callers that construct :class:TensorAllocation directly; the bundled :class:GreedyMemoryPlanner always populates it. Emit templates dispatch on binding.role and on the binding.source_memory == binding.memory predicate (cold vs staged constant).