• Docs >
  • Utils >
  • torchtnt.utils.device.get_psutil_cpu_stats
Shortcuts

torchtnt.utils.device.get_psutil_cpu_stats

torchtnt.utils.device.get_psutil_cpu_stats() CPUStats

Get CPU process stats using psutil.

Returns:a dict that maps cpu stats to their values.

Keys:

  • ’cpu_vm_percent’
  • ’cpu_percent’
  • ’cpu_swap_percent’
Return type:Dict[str, float]

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