Skip to main content

encode_f32_matrix

Function encode_f32_matrix 

Source
pub fn encode_f32_matrix(rows: &[Vec<f32>]) -> Vec<u8> ⓘ
Expand description

Encode an embedding matrix (rows × dim, row-major) to little-endian f32 bytes.