torch.cuda.memory.caching_allocator_alloc
- torch.cuda.memory.caching_allocator_alloc(size, device=None, stream=None)
Perform a memory allocation using the CUDA memory allocator.
Memory is allocated for a given device and a stream, this function is intended to be used for interoperability with other frameworks. Allocated memory is released through
caching_allocator_delete().