W3cubDocs

/PyTorch 2.9

torch.cuda.memory.reset_accumulated_host_memory_stats

torch.cuda.memory.reset_accumulated_host_memory_stats() [source]

Reset the “accumulated” (historical) stats tracked by the host memory allocator.

See host_memory_stats() for details. Accumulated stats correspond to the “allocated” and “freed” keys in each individual stat dict.

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.cuda.memory.reset_accumulated_host_memory_stats.html