recurrent_states

Function recurrent_states 

Source
pub fn recurrent_states(
    model_type: &str,
    dims: &BTreeMap<String, u64>,
) -> Result<Option<Vec<StateDecl>>, CircuitError>
Expand description

2026-09-30: The recurrent states of one layer of the circuit that serves the engine-configured model_type (ConfigMap::serves_engine_model_type), under dims: the declarations of the one layer block that keeps recurrent state (GatedDeltaNet gdn, Mamba2 mamba), ids <block>.<state>. Ok(Some(empty)) for a circuit with no recurrent layer.