# tensorplay.cuda.caching_allocator_alloc

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.caching_allocator_alloc.html

# tensorplay.cuda.caching_allocator_alloc

tensorplay.cuda.caching_allocator_alloc(size, device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None, stream=None)[[source]](../_modules/tensorplay/cuda/memory.html#caching_allocator_alloc)

Perform a memory allocation using the CUDA memory allocator.

Not exposed by this TensorPlay build.
