Skip to main content

encode_batch

Function encode_batch 

Source
pub fn encode_batch(vectors: &[&[f32]], dim: usize) -> Vec<u8> 
Expand description

Batch encode: encode all vectors into contiguous binary representation.

Returns ceil(dim/8) * N bytes.