Skip to main content

require_weights

Function require_weights 

Source
pub fn require_weights(state: &WeightState) -> Result<&WeightBlob, AudioError>
Expand description

The fail-closed gate. Returns the loaded weights, or BackendUnavailable when absent.

This is the single choke point ADR 007 requires: a head that cannot obtain weights here must propagate the error and produce nothing.