ARTICLE · INTELLIGENCE

战地情报 · 详情页

来自尧图项目组的一线实战观察与深度解析

【Pytorch】Pytorch:terminate called after throwing an instance of ‘c10::Error‘

【Pytorch】Pytorch:terminate called after throwing an instance of ‘c10::Error‘

这个是LZ在加载模型时报的一个错误,一直以为是版本什么的问题,最后发现完整报错如下:

RuntimeError: unexpected EOF, expected 41812675 more bytes. The file might be corrupted. terminate called after throwing an instance of 'c10::Error'

EOF是代表文件结束的标记,原来是模型被破坏了,后面重新下载了一遍模型,问题解决!

RELATED READING

延伸阅读

更多一线实战笔记与深度复盘,助您持续精进