• Docs >
  • Utils >
  • torchtnt.utils.oom.log_memory_snapshot
Shortcuts

torchtnt.utils.oom.log_memory_snapshot

torchtnt.utils.oom.log_memory_snapshot(output_dir: str) None

Writes the memory snapshots to the provided output_dir. For more information, see this blog post .

Parameters:output_dir (str) – The directory to save the memory snapshot.

Note

Outputs are only saved if running on a host with CUDA devices available.

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