You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Performance] Call a error when running on windows 7.detail:System.TypeInitializationException at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()
#21116
I run an application on my own computer is ok,because my operation is window11,but i run it on an operation is windows7,it call an error :"System.TypeInitializationException at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()". Why make it?Because windows 7 's kernelBase.dll lose something?what should i do?
To reproduce
var session = new InferenceSession(modelPath);
Bitmap bitmap = ResizeAndCenterImageByBitmap(bitmapss, 640, 640);
var inputTensor = FastToOnnxTensor_13hw(bitmap);
// 进行预测
var container = new List<NamedOnnxValue>();
container.Add(NamedOnnxValue.CreateFromTensor("images", inputTensor));
IDisposableReadOnlyCollection<DisposableNamedOnnxValue> unresolve = session.Run(container);
// 解析预测结果
var resultsArray = unresolve.ToArray();
Tensor<float> tensors = resultsArray[0].AsTensor<float>();var session = new InferenceSession(modelPath);
Bitmap bitmap = ResizeAndCenterImageByBitmap(bitmapss, 640, 640);
var inputTensor = FastToOnnxTensor_13hw(bitmap);
var container = new List<NamedOnnxValue>();
container.Add(NamedOnnxValue.CreateFromTensor("images", inputTensor));
IDisposableReadOnlyCollection<DisposableNamedOnnxValue> unresolve = session.Run(container);
var resultsArray = unresolve.ToArray();
Tensor<float> tensors = resultsArray[0].AsTensor<float>();
Urgency
No response
Platform
Windows
OS Version
7
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.15.0
ONNX Runtime API
C#
Architecture
X86
Execution Provider
Default CPU
Execution Provider Library Version
No response
Model File
No response
Is this a quantized model?
Yes
The text was updated successfully, but these errors were encountered:
Describe the issue
I run an application on my own computer is ok,because my operation is window11,but i run it on an operation is windows7,it call an error :"System.TypeInitializationException at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()". Why make it?Because windows 7 's kernelBase.dll lose something?what should i do?
To reproduce
var session = new InferenceSession(modelPath);
Urgency
No response
Platform
Windows
OS Version
7
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.15.0
ONNX Runtime API
C#
Architecture
X86
Execution Provider
Default CPU
Execution Provider Library Version
No response
Model File
No response
Is this a quantized model?
Yes
The text was updated successfully, but these errors were encountered: