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)