Expand description
This crate provides a memory allocator for tensor
Modules§
- traits
- traits for the allocator
Structs§
- Backend
- backend of tensor
- Cpu
- Cpu backend
- HptAllocator
- Built-in allocator for Hpt
Statics§
- CPU_
STORAGE - This is a global variable that stores the allocated ptrs and their reference count for CPU devices
Traits§
Functions§
- clone_
storage - Clone Storage
- resize_
cpu_ lru_ cache - resize the lru cache of the cpu allocator