Skip to content
heliaAOT
API Reference
HELIA HUB

TensorLifetime

Machine-readable model

class

Tensor operator lifetime.

helia_aot/memory/defines.py:142

TensorLifetime()

Tensor operator lifetime.

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

method

add_op

Python

Add an operator index to the lifetime.

helia_aot/memory/defines.py:156

add_op(op_idx: int)

Add an operator index to the lifetime.

Parameters of add_op
NameTypeDefaultDescription
op_idxintRequiredOperator index to add
method

merge

Python

Merge another lifetime into this one.

helia_aot/memory/defines.py:165

merge(other: TensorLifetime)

Merge another lifetime into this one.

This updates the start and end operators to encompass both lifetimes. Useful when tensors have aliases.

Parameters of merge
NameTypeDefaultDescription
otherTensorLifetimeRequiredAnother tensor lifetime to merge