📜  火炬分发地址已在使用中 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.086000             🧑  作者: Mango

代码示例1
#Kill zombie processes set of by torch.distributed launch
# if a small number of gpus use
$ ps -a
$ kill -9 [pid]
#for larger numbers of gpus
$ kill $(ps aux | grep YOUR_TRAINING_SCRIPT.py | grep -v grep | awk '{print $2}')