pub fn ternary_blob(weights: &[f32]) -> Vec<u8> ⓘ
Encode a weight tensor to a self-describing ternary blob: [scale: f32 LE][packed trits]. (The element count is recovered from the tensor’s shape in the container manifest.)
[scale: f32 LE][packed trits]