Skip to main content

bytes_to_vec

Function bytes_to_vec 

Source
pub fn bytes_to_vec(b: &[u8]) -> Vec<f32>
Expand description

Decode little-endian f32 bytes back into an embedding. Returns an empty vec if the byte length isn’t a multiple of 4 (corrupt/foreign blob).