Open gxlarson opened 3 years ago
Possibly related: https://github.com/microsoft/onnxruntime/issues/3144
The error message is not clear enough but sparse is not fully supported yet in onnxruntime. It is safer to remove every use of sparse when converting a pipeline to sklearn-onnx.
In the code below, I am able to serialize a model but only if the feature vectors are converted from sparse (e.g. 'scipy.sparse.csr.csr_matrix') to dense.
If we do not do the
embeddings = embeddings.todense()
line in the snippet above, I get this error: