【Pytorch】Pytorch:terminate called after throwing an instance of ‘c10::Error‘
发布时间2026/10/24 1:06:59
来源一条长河网
字数约 2200
长河君· 2026/10/24 1:06:59· 阅读 1.2k
【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::ErrorEOF是代表文件结束的标记原来是模型被破坏了后面重新下载了一遍模型问题解决