Skip to main content

pp_cuts

Function pp_cuts 

Source
pub fn pp_cuts(n_layers: usize) -> Option<Vec<usize>>
Expand description

Returns the stage fence iff the ppN door is open: MEMRA_PP_STAGES=N (N >= 2) with a valid cut list. The fence has N+1 entries: [0, c1, .., cN-1, n_layers]; stage s runs layers [fence[s], fence[s+1]). Reads the environment on every call (gates toggle the door in-process); the cost is a few getenv per decode step, eager-loop noise.