Fix up docs for MLContext #7334
Merged
Build Analysis / Build Analysis
succeeded
Dec 16, 2024 in 0s
.NET Result Analysis
Details
‼️ Build Analysis Check Result has been manually overridden
- The build analysis check result has been updated by the user for the following reason: test failure is https://github.com//issues/7339
- The check result has changed from Failure to Success
Tip
To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.
Build Failures
MachineLearning-CI / Windows_cross_arm64_Net6 / Windows_cross_arm64_Net6 Debug_Build / Run Helix Tests
[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]-
❌Cmd.exe exited with code '1'.
Test Failures (2 tests failed)
🔹 [All failing tests from MachineLearning-CI]
- Exception Message
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.
- CallStack
at Microsoft.ML.Runtime.ComponentCatalog.LoadableClassInfo.CreateInstanceCore(Object[] ctorArgs) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 252 at Microsoft.ML.Runtime.ComponentCatalog.LoadableClassInfo.CreateInstance(IHostEnvironment env, Object args, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 277 at Microsoft.ML.Runtime.ComponentCatalog.TryCreateInstance[TRes](IHostEnvironment env, Type signatureType, TRes& result, String name, String options, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 1028 at Microsoft.ML.Runtime.ComponentCatalog.TryCreateInstance[TRes,TSig](IHostEnvironment env, TRes& result, String name, String options, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 993 at Microsoft.ML.ModelLoadContext.TryLoadModelCore[TRes,TSig](IHostEnvironment env, TRes& result, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\Data\ModelLoading.cs:line 252 at Microsoft.ML.ModelLoadContext.TryLoadModel[TRes,TSig](IHostEnvironment env, TRes& result, RepositoryReader rep, Entry ent, String dir, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\Data\ModelLoading.cs:line 164 at Microsoft.ML.ModelLoadContext.LoadModel[TRes,TSig](IHostEnvironment env, TRes& result, RepositoryReader rep, Entry ent, String dir, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\Data\ModelLoading.cs:line 182 at Microsoft.ML.ModelLoadContext.LoadModelOrNull[TRes,TSig](IHostEnvironment env, TRes& result, RepositoryReader rep, String dir, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\Data\ModelLoading.cs:line 94 at Microsoft.ML.ModelLoadContext.LoadModel[TRes,TSig](IHostEnvironment env, TRes& result, RepositoryReader rep, String dir, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\Data\ModelLoading.cs:line 121 at Microsoft.ML.ModelOperationsCatalog.Load(Stream stream, DataViewSchema& inputSchema) in D:\a\_work\1\s\src\Microsoft.ML.Data\Model\ModelOperationsCatalog.cs:line 163 at Microsoft.ML.RunTests.TestDataPipeBase.TestEstimatorCore(IEstimator`1 estimator, IDataView validFitInput, IDataView validTransformInput, IDataView invalidInput, IDataView validForFitNotValidForTransformInput, Boolean shouldDispose) in D:\a\_work\1\s\test\Microsoft.ML.TestFramework\DataPipe\TestDataPipeBase.cs:line 88 at Microsoft.ML.Tests.DnnImageFeaturizerTests.TestDnnImageFeaturizer() in D:\a\_work\1\s\test\Microsoft.ML.OnnxTransformerTest\DnnImageFeaturizerTest.cs:line 83 ----- Inner Stack Trace ----- at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.ML.Runtime.ComponentCatalog.LoadableClassInfo.CreateInstanceCore(Object[] ctorArgs) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 247 ----- Inner Stack Trace ----- at Microsoft.ML.Runtime.ComponentCatalog.LoadableClassInfo.CreateInstanceCore(Object[] ctorArgs) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 252 at Microsoft.ML.Runtime.ComponentCatalog.LoadableClassInfo.CreateInstance(IHostEnvironment env, Object args, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 277 at Microsoft.ML.Runtime.ComponentCatalog.TryCreateInstance[TRes](IHostEnvironment env, Type signatureType, TRes& result, String name, String options, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentModel\ComponentCatalog.cs:line 1028 at Microsoft.ML.Runtime.ComponentCatalog.TryCreateInstance[TRes,TSig](IHostEnvironment env, TRes& result, String name, String options, Object[] extra) in D:\a\_work\1\s\src\Microsoft.ML.Core\ComponentMod
❌ Microsoft.ML.OnnxTransformerTest.WorkItemExecution [Console] [Details] [Artifacts] [4.68% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]
Failing Configuration
❌ Microsoft.ML.Tests.DnnImageFeaturizerTests.TestDnnImageFeaturizer [Console] [Details] [Artifacts] [0.33% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
Failing Configuration
Loading