Skip to main content

target_size

Function target_size 

Source
pub fn target_size(quant_mode: QuantMode, dim: u16, outlier_count: u32) -> usize
Expand description

Compute the buffer size (rounded up to a 128-byte multiple) required to hold a UnifiedQuantizedVector with the given parameters.

This is the pre-sizing helper for callers that want to allocate before constructing.