This is caused by the unmatching of gpu device number when loading a saved model.

 

torch.load('my_file.pt', map_location=lambda storage, loc: storage)

 

 

ref:

http://blog.csdn.net/shincling/article/details/78919282

相关文章:

  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
相关资源
相似解决方案