Expand description
The default memory limit. Also re-exports the metric and dtype items.
Re-exports§
pub use crate::dtype::EmbeddingDtype;pub use crate::dtype::dtype_of_array;pub use crate::dtype::read_subset_as_f32;pub use crate::metric::Metric;pub use crate::metric::calculate_distances;pub use crate::metric::negative_squared_distances;
Functions§
- default_
memory_ limit_ bytes - Returns the default memory limit in bytes, 80% of RAM rounded down to a whole GiB. Inside a Linux container it uses the container’s memory cap, since the host’s RAM would be too high.