#要先切换到对应的python版本上 torchpack dist-run -np 1 python tools/train.py 执行attach调试,在代码处添加断点,就可以进行调试,打印变量等。 4.torch.distributed调试 配置launch.json { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.micros...
Set breaking points in your code where you wish. Create the following launch.json file under .vscode folder In a command line run your torchpack command like you just want to run the code and not debug, i.e.: torchpack dist-run -np 1 python tools/test.py configs/nuscenes/det/transfusion...