无语死了,想优化一个ChatGLM2,结果导出的onnx,用onnxsim简化不了,一直提示
The model does not have an ir_version set properly.
github上查了各种信息也没有很靠谱的解决方案,经过无心插柳的查找,发现原来是onnx把model序列化成字串的时候,用了protobuf,这个版本高的话,会让序列化字串出错,Onnx导不进来,把该pip包降到了
protobuf 4.23.4 =》 3.20.3
之后,成功载入并且sim成功,记录一下,赠给有缘人
The model does not have an ir_version set properly.................