PyTorch在Debian上的资源占用情况可通过以下方面分析:
torch.cuda.memory_allocated
--no-cache-dir
top
htop
torch.set_num_threads()
nvidia-smi
监控工具:
dstat
psutil