#要先切换到对应的python版本上 torchpack dist-run -np 1 python tools/train.py 执行attach调试,在代码处添加断点,就可以进行调试,打印变量等。 4.torch.distributed调试 配置launch.json { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.micros...