resize_cpu_lru_cache

Function resize_cpu_lru_cache 

Source
pub fn resize_cpu_lru_cache(new_size: usize, device_id: usize)
Expand description

resize the lru cache of the cpu allocator

when new_size >= old_size, cache size will increase and data won’t be deallocated

when new_size < old_size, all the data in cache will be deallocated