torch.cuda.memory.get_allocator_backend
- torch.cuda.memory.get_allocator_backend()
Return a string describing the active allocator backend as set by
PYTORCH_ALLOC_CONF. Currently available backends arenative(PyTorch’s native caching allocator) and cudaMallocAsync` (CUDA’s built-in asynchronous allocator).