Crate hpt_allocator

Source
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§

BackendTy
backend id trait
Buffer
trait for buffer

Functions§

clone_storage
Clone Storage
resize_cpu_lru_cache
resize the lru cache of the cpu allocator