Skip to main content

f32_slice_to_bytes

Function f32_slice_to_bytes 

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

Convert a &[f32] to a little-endian byte vector.

Useful for storing embedding vectors as BLOB in SQLite.