Skip to content

System.DllNotFoundException: Unable to load DLL 'CpuMathNative' #333

Description

@prisar

System information

  • OS version/distro: Windows Server 2016 Standard
  • .NET Version (eg., dotnet --info): Core 2.0

Issue

  • What did you do?
    When trying to load model from a file var model = PredictionModel.ReadAsync<IrisData, IrisPrediction>(modelPath).Result; gives DllNotFoundException while running in windows container.
  • What happened?
    Internal Server Error
  • What did you expect?
    Model should be loaded in model variable.

Source code / logs

System.DllNotFoundException: Unable to load DLL 'CpuMathNative': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Microsoft.ML.Runtime.Internal.CpuMath.Thunk.DotU(Single* pa, Single* pb, Int32 c)
   at Microsoft.ML.Runtime.Internal
1000
.CpuMath.SseUtils.DotProductDense(Single[] a, Single[] b, Int32 count)
   at Microsoft.ML.Runtime.Learners.MulticlassLogisticRegressionPredictor.PredictCore(VBuffer`1& src, Single[]& dst)
   at Microsoft.ML.Runtime.Learners.MulticlassLogisticRegressionPredictor.<GetMapper>b__30_0[TSrc,TDst](VBuffer`1& src, VBuffer`1& dst)
   at Microsoft.ML.Runtime.Data.PredictedLabelScorerBase.EnsureCachedPosition[TScore](Int64& cachedPosition, TScore& score, IRow boundRow, ValueGetter`1 scoreGetter)
   at Microsoft.ML.Runtime.Data.MultiClassClassifierScorer.<>c__DisplayClass14_0.<GetPredictedLabelGetter>b__0(UInt32& dst)
   at Microsoft.ML.Runtime.Data.KeyToValueTransform.KeyToValueMap`2.<>c__DisplayClass7_0.<GetMappingGetter>b__0(TValue& dst)
   at Microsoft.ML.Runtime.Data.DataViewUtils.Splitter.Consolidator.<>c__DisplayClass4_1.<ConsolidateCore>b__2()

```Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions