torchscan.process

The process subpackage contains tools regarding active Python processes.

The following models are available:

torchscan.process.get_process_gpu_ram(pid)[source]

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

Parameters:

pid (int) – process ID

Returns:

RAM usage in Megabytes

Return type:

float