For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python class
RecurrentStateInputsPerDevice
RecurrentStateInputsPerDevice
class max.nn.kv_cache.RecurrentStateInputsPerDevice(leaves)
Bases: Generic[_Tensor, _Buffer]
One device’s recurrent-state leaves.
-
Parameters:
-
leaves (tuple[RecurrentLeafInputs[_Tensor, _Buffer], ...])
leaves
leaves: tuple[RecurrentLeafInputs[_Tensor, _Buffer], ...]
In the order the regions were declared.