由于版本原因,有些torch版本下get_trace_graph报错 module 'torch.jit' has no attribute 'get_trace_graph--------报错 这是因为版本变化,1.1torch可以用get_trace_graph其他把get_trace_graph改为_get_trace_graph 查看了torch.jit的新版本源代码,与旧版本相比,它将功能名称从get_trace_graph更改为_get_trace_graph。