torchscan.process#

The process subpackage contains tools regarding active Python processes.

The following models are available:

torchscan.process.get_process_gpu_ram(pid: int) float[source]#

Gets the amount of RAM used by a given process on GPU devices

Parameters:

pid – process ID

Returns:

RAM usage in Megabytes