pytorch+python

错误:

AttributeError: module 'torch.jit' has no attribute 'get_trace_graph

 

 纠正:

self.trace, _ = torch.jit.get_trace_graph(self.model, args=(self.x,))

为:

self.trace, _ = torch.jit._get_trace_graph(self.model, args=(self.x,))
问题解决

相关文章:

  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
  • 2021-06-06
  • 2021-07-27
  • 2021-05-07
  • 2022-01-23
  • 2021-08-17
猜你喜欢
  • 2021-12-07
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
  • 2021-10-09
相关资源
相似解决方案