Expand description
Stochastic forward pass over caller-owned packed weight bitstreams.
The input encoder is the 16-bit LFSR comparator (encoder::Lfsr16 semantics:
taps 16, 14, 13, 11; bit = reg < x_value then advance), so the result is
bit-identical to the NumPy fallback in
src/sc_neurocore/accel/sc_inference.py for a fixed seed.
Enumsยง
- ScForward
Error - SC inference contract errors.
Functionsยง
- input_
seed ๐ - Per-input non-zero 16-bit LFSR seed derived from the base seed.
- lfsr_
encode_ ๐packed - Encode one probability into a
length-bit LFSR comparator stream, packed LSB-first into theoutwords (matchingbitstream::pack). - sc_
forward_ packed - Stochastic forward pass over pre-packed unipolar weight bitstreams.