Torch 報錯問題記錄


 

1、高版本模型在低版本環境運行Error

 

Traceback (most recent call last):
  File "demo.py", line 76, in <module>
    demo(args)
  File "demo.py", line 45, in demo
    model.load_state_dict(torch.jit.load(args.model))
  File "/home/simon/anaconda3/envs/raft/lib/python3.6/site-packages/torch/jit/__init__.py", line 146, in load
    torch._C.import_ir_module(module_lookup, f, map_location, _extra_files)
RuntimeError: version_number <= kMaxSupportedFileFormatVersion ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:131, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 1. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:131)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM