Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests using Onnx fail with LoadOrtModelWithLoader ORT model verification failed #7339

Open
ericstj opened this issue Dec 16, 2024 · 0 comments
Labels
blocking-clean-ci Blocking PR or rolling builds Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@ericstj
Copy link
Member

ericstj commented Dec 16, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=895122
Build error leg or test failing: Microsoft.ML.Tests.DnnImageFeaturizerTests.TestDnnImageFeaturizer
Pull request: #7334

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "LoadOrtModelWithLoader ORT model verification failed.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Sample stack:

System.InvalidOperationException : Error during class instantiation
---- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
-------- System.InvalidOperationException : Error during class instantiation
------------ System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
---------------- System.InvalidOperationException : Error initializing model :Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:Fail] inference_session.cc:1357 onnxruntime::InferenceSession::LoadOrtModelWithLoader ORT model verification failed.
   at Microsoft.ML.OnnxRuntime.InferenceSession.Init(String modelPath, SessionOptions options, PrePackedWeightsContainer prepackedWeightsContainer)
   at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(String modelPath, SessionOptions options)
   at Microsoft.ML.Transforms.Onnx.OnnxModel..ctor(IHostEnvironment env, String modelFile, Nullable`1 gpuDeviceId, Boolean fallbackToCpu, Boolean ownModelFile, IDictionary`2 shapeDictionary, Int32 recursionLimit, Nullable`1 interOpNumThreads, Nullable`1 intraOpNumThreads) in D:\a\_work\1\s\src\Microsoft.ML.OnnxTransformer\OnnxUtils.cs:line 242
   at Microsoft.ML.Transforms.Onnx.OnnxModel.CreateFromBytes(Byte[] modelBytes, IHostEnvironment env, Nullable`1 gpuDeviceId, Boolean fallbackToCpu, IDictionary`2 shapeDictionary, Int32 recursionLimit) in D:\a\_work\1\s\src\Microsoft.ML.OnnxTransformer\OnnxUtils.cs:line 410
   at Microsoft.ML.Transforms.Onnx.OnnxTransformer..ctor(IHostEnvironment env, Options options, Byte[] modelBytes) in D:\a\_work\1\s\src\Microsoft.ML.OnnxTransformer\OnnxTransform.cs:line 280
-------------------- Microsoft.ML.OnnxRuntime.OnnxRuntimeException : [ErrorCode:Fail] inference_session.cc:1357 onnxruntime::InferenceSession::LoadOrtModelWithLoader ORT model verification failed.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=895122
Error message validated: [LoadOrtModelWithLoader ORT model verification failed.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 12/16/2024 9:15:15 PM UTC

Report

Build Definition Test Pull Request
896731 dotnet/machinelearning Microsoft.ML.Tests.DnnImageFeaturizerTests.TestDnnImageFeaturizer
895122 dotnet/machinelearning Microsoft.ML.OnnxTransformerTest.WorkItemExecution #7334

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 2
@ericstj ericstj added blocking-clean-ci Blocking PR or rolling builds Known Build Error Use this to report build issues in the .NET Helix tab labels Dec 16, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Dec 16, 2024
@build-analysis build-analysis bot removed the untriaged New issue has not been triaged label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking-clean-ci Blocking PR or rolling builds Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

1 participant