pub fn release_process_allocator_cached_memory() -> AllocatorPressureReliefExpand description
Ask the process allocator to return cached/free memory to the operating system.
This is a diagnostic and memory-pressure hook for the platform system allocator only. It does not release memory that is still owned by live tensors or explicit buffer pools, and it may have no effect if the program is built with a custom global allocator.
ยงExamples
use tensor4all_tensorbackend::release_process_allocator_cached_memory;
let report = release_process_allocator_cached_memory();
assert_eq!(
report.supported,
cfg!(any(target_os = "macos", target_os = "linux"))
);