Relative Content

Tag Archive for c#androidxamarin.formsmobilebert-language-model

Error when launching mobilebert on Xamarin

I have a problem with running google/mobilebert-uncased in Xamarin.
I get an error System.DllNotFoundException Message=onnxruntime assembly:<unknown assembly> type:<unknown type> member:(null) in the line session = new InferenceSession(modelPath);.
I am using Visual Studio 2022 and .NET Standard 2.1. My Microsoft.ML.OnnxRuntime.dll file is located at objDebug110androidassets.
And I took all the files from google/mobilebert-uncased on the official HuggingFace site (except I compiled the model from .bin to .onnx).

Error when launching mobilebert on Xamarin

I have a problem with running google/mobilebert-uncased in Xamarin.
I get an error System.DllNotFoundException Message=onnxruntime assembly:<unknown assembly> type:<unknown type> member:(null) in the line session = new InferenceSession(modelPath);.
I am using Visual Studio 2022 and .NET Standard 2.1. My Microsoft.ML.OnnxRuntime.dll file is located at objDebug110androidassets.
And I took all the files from google/mobilebert-uncased on the official HuggingFace site (except I compiled the model from .bin to .onnx).