onnxsim简化模型报错
import onnx
import onnxsim
from onnxsim import simplify
model_path = '' #上一步保存好的onnx格式的模型路径
onnx_model = onnx.load(model_path) # load onnx model
model_simp, check = simplify(onnx_model)
assert check, "Simplified ONNX model could not be validated"
onnx.save(model_simp, model_path)
print('finished exporting onnx')
运行结果及报错内容
onnx.onnx_cpp2py_export.checker.ValidationError: Field 'type' of 'value_info' is required but missing.
有知道怎么解决的吗