I want to make prediction using azure AutoML onnx model in .net core(3.1) console application in visual studio. I have exported onnx model from azure AutoML.
I am following the tutorial link : https://docs.microsoft.com/en-us/azure/machine-learning/how-to-use-automl-onnx-model-dotnet
It says to install following packages (in parenthesis shows the version I am using)
Microsoft.ML (1.5.4)
Microsoft.ML.OnnxRuntime(1.7.0)
Microsoft.ML.OnnxTransformer(1.5.4)
while defining the pipeline
var onnxPredictionPipeline =mlContext.Transforms.ApplyOnnxModel(
outputColumnNames: outputColumns,
inputColumnNames: inputColumns,
ONNX_MODEL_PATH);
I am getting the following error :
System.TypeInitializationException: 'The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.'
EntryPointNotFoundException: Unable to find an entry point named 'OrtGetApiBase' in DLL 'onnxruntime'.
Then I tried with Microsoft.ML.OnnxRuntime.Managed(1.7.1) along with above packages but still getting the same issue.
Please suggest to resolve this issue.