Closed UtopiaDreamTeam closed 2 years ago
Hi @UtopiaDreamTeam
Here is a sample that is able to use the BiDAF ONNX model inside ML.NET. The issue is not the multidimensional arrays. It's the variable sized vectors. To fix that, set the dimension to a known size of your choosing and make sure that when you prepare your data, it matches that size.
https://gist.github.com/luisquintanilla/164176ec414e465246d6323aa62b38df
System Information (please complete the following information):
Describe the bug
System.InvalidOperationException: Variable length input columns
not supported on when usingVectorTypeAttribute
orshapeDictionary
parameter onOnnxCatalog.ApplyOnnxModel
To Reproduce Steps to reproduce the behavior:
Microsoft.ML.OnnxTransformer
[VectorType(0,1, 1, 16)]
orTrivialEstimator.Fit()
is calledScreenshots, Code, Sample Projects I'm trying to use this Onnx model https://github.com/onnx/models/tree/main/text/machine_comprehension/bidirectional_attention_flow
Full Code
Output model
Input model