Skip to main content

DEFAULT_RETAINED_LIMIT

Constant DEFAULT_RETAINED_LIMIT 

Source
pub const DEFAULT_RETAINED_LIMIT: usize = _; // 67_108_864usize
Expand description

The allocation size, in bytes, that retain_pages keeps on the heap.

Large enough for any pinned trained-model output, the biggest of which is about 2.9 MB, so an output buffer stays on the heap while a genuinely large allocation still takes its own mapping.