Open coogle opened 2 months ago
Package versions
scikit-learn 1.4.2 onnxruntime 1.17.0 (prod) onnxruntime 1.18.0 (notebook) skl2onnx 1.17.0
onnx version is missing in your message. You should add convert_sklearn(..., target_opset=18). onnxruntime is usually one or two releases behind onnx.
Downgrading onnx version to 1.15.0 will solve your problem.
I'm trying to use
convert_sklearn
to convert my model to ONNX for use. My notebook runs and I can use the converted model within the notebook to make predictions... but when I try to take my ONNX model and use it in its production environment I am getting a version error:Unsupported model IR version: 10, max supported IR version: 9
I don't think I can do much about the max supported IR version 9 (I'll be 100% honest I'm also kind of unclear what's going on here as this is my very first attempt at making a model from scratch ever).. Is there something I need to do in my call to
convert_sklearn
?Here's the relevant code: