W3cubDocs

/PyTorch 2.9

torch.cuda.memory.reset_peak_host_memory_stats

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

Reset the “peak” stats tracked by the host memory allocator.

See host_memory_stats() for details. Peak stats correspond to the “peak” key 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_peak_host_memory_stats.html