# tensorplay.cuda.memory API Source: https://www.tensorplay.cn/docs/api/tensorplay.cuda.memory.html ## Functions 3 [#](#api-tensorplay.cuda.memory.caching_allocator_disabled) ### caching_allocator_disabled function[Full reference ↗](/docs/generated/tensorplay.cuda.memory.caching_allocator_disabled.html) ```python tensorplay.cuda.memory.caching_allocator_disabled() ``` Context manager that temporarily disables the CUDA caching allocator. [#](#api-tensorplay.cuda.memory.caching_allocator_enable) ### caching_allocator_enable function[Full reference ↗](/docs/generated/tensorplay.cuda.memory.caching_allocator_enable.html) ```python tensorplay.cuda.memory.caching_allocator_enable(value: bool = True) → None ``` Enable or disable the CUDA memory allocator. On by default. [#](#api-tensorplay.cuda.memory.use_mem_pool) ### use_mem_pool function[Full reference ↗](/docs/generated/tensorplay.cuda.memory.use_mem_pool.html) ```python tensorplay.cuda.memory.use_mem_pool(pool) ``` Route allocations to a MemPool (not supported by this build).