oa::ml::nn::TransformerCache
Per-layer key/value cache set for one autoregressive decode session. Each entry pairs with the same-index Transformer block; every Transformer::step appends one position per layer and advances the decode position used for positional embedding and the context-length bound.
Declaration
pub struct TransformerCache { /* private fields */ }Public Rust declaration.