sklearn-onnx icon indicating copy to clipboard operation
sklearn-onnx copied to clipboard

InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from model_svc_tobb_2021_11_12.onnx failed:This is an invalid model. Type Error: Type 'seq(map(int64,tensor(float)))' of input parameter (output_probability) of operator (SequenceConstruct) in node (SequenceConstruct) is invalid

Open RAOMMA opened this issue 3 years ago • 2 comments

I am facing this issue during running the model on runtime.

RAOMMA avatar Nov 12 '21 13:11 RAOMMA

Are you using MultiOutputClassifier? In that case, you should specify option zipmap=False.

xadupre avatar Nov 16 '21 11:11 xadupre

@RAOMMA , is this issue resolved ,can you please let me know the solution which you used. I am facing the similar bug while Converting MultiOutputClassifier to onnx [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. Type Error: Type 'seq(tensor(double))' of input parameter (probabilities) of operator (Cast) in node (Cast1) is invalid.

SwatiTiwarii avatar May 09 '22 03:05 SwatiTiwarii