Rate this Page

torch.accelerator.memory.reset_peak_memory_stats#

torch.accelerator.memory.reset_peak_memory_stats(device_index=None, /)[source]#

Reset the “peak” stats tracked by the current accelerator memory allocator for a given device index.

Parameters

device_index (torch.device, str, int, optional) – the index of the device to target. If not given, use torch.accelerator.current_device_index() by default. If a torch.device or str is provided, its type must match the current accelerator device type.

Note

This function is a no-op if the memory allocator for the current accelerator has not been initialized.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
Morty Proxy This is a proxified and sanitized view of the page, visit original site.