Skip to main content

fits_in_memory

Function fits_in_memory 

Source
pub fn fits_in_memory(
    count: usize,
    dim: usize,
    memory_limit_bytes: usize,
) -> bool
Expand description

Checks whether count f32 embeddings of length dim fit under the memory limit.