empty_cache
| Release all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU application and visible in nvidia-smi. |
get_per_process_memory_fraction
| Get memory fraction for a process. |
list_gpu_processes
| Return a human-readable printout of the running processes and their GPU memory use for a given device. |
mem_get_info
| Return the global free and total GPU memory for a given device using cudaMemGetInfo. |
memory_stats
| Return a dictionary of CUDA memory allocator statistics for a given device. |
memory_stats_as_nested_dict
| Return the result of memory_stats() as a nested dictionary. |
reset_accumulated_memory_stats
| Reset the "accumulated" (historical) stats tracked by the CUDA memory allocator. |
host_memory_stats
| Return a dictionary of pinned (host) allocator statistics. |
host_memory_stats_as_nested_dict
| Return the result of host_memory_stats() as a nested dictionary. |
reset_accumulated_host_memory_stats
| Reset the "accumulated" (historical) stats tracked by the host memory allocator. |
memory_summary
| Return a human-readable printout of the current memory allocator statistics for a given device. |
memory_snapshot
| Return a snapshot of the CUDA memory allocator state across all devices. |
memory_allocated
| Return the current GPU memory occupied by tensors in bytes for a given device. |
max_memory_allocated
| Return the maximum GPU memory occupied by tensors in bytes for a given device. |
reset_max_memory_allocated
| Reset the starting point in tracking maximum GPU memory occupied by tensors for a given device. |
memory_reserved
| Return the current GPU memory managed by the caching allocator in bytes for a given device. |
max_memory_reserved
| Return the maximum GPU memory managed by the caching allocator in bytes for a given device. |
set_per_process_memory_fraction
| Set memory fraction for a process. |
memory_cached
| Deprecated; see memory_reserved(). |
max_memory_cached
| Deprecated; see max_memory_reserved(). |
reset_max_memory_cached
| Reset the starting point in tracking maximum GPU memory managed by the caching allocator for a given device. |
reset_peak_memory_stats
| Reset the "peak" stats tracked by the CUDA memory allocator. |
reset_peak_host_memory_stats
| Reset the "peak" stats tracked by the host memory allocator. |
caching_allocator_alloc
| Perform a memory allocation using the CUDA memory allocator. |
caching_allocator_delete
| Delete memory allocated using the CUDA memory allocator. |
get_allocator_backend
| Return a string describing the active allocator backend as set by PYTORCH_ALLOC_CONF. |
CUDAPluggableAllocator
| CUDA memory allocator loaded from a so file. |
change_current_allocator
| Change the currently used memory allocator to be the one provided. |
MemPool
| MemPool represents a pool of memory in a caching allocator. |