https://github.com/zasdfgbnm/TorchSnooper pip install torchsnooper 在函数前加装饰器@torchsnooper.snoop() 转载于:https://www.cnblogs.com/Manuel/p/11055065.html