IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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)

source

Bases: Generic[_Tensor, _Buffer]

One device’s recurrent-state leaves.

Parameters:

leaves (tuple[RecurrentLeafInputs[_Tensor, _Buffer], ...])

leaves​

leaves: tuple[RecurrentLeafInputs[_Tensor, _Buffer], ...]

source

In the order the regions were declared.