machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Unable to find an entry point named TF_StringEncodedSize in DLL tensorflow

Open horczech opened this issue 4 years ago • 3 comments

System Information:

  • OS & Version: Windows 11
  • ML.NET Version: ML.NET v1.7.1
  • .NET Version: .NET 6.0
  • SciSharp.TensorFlow.Redist Version: v2.7.0

Describe the bug When I try to learn MobilenetV2 using the mlContext.MulticlassClassification.Trainers .ImageClassification API on ML.NET version 1.7.1 and Redist version 2.7.0 I get the following error: System.EntryPointNotFoundException: 'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'

To Reproduce Steps to reproduce the behavior: Try to learn MobilenetV2 using the SciSharp.TensorFlow.Redist v2.7.0 or run the code on my GIT

Expected behavior The model will get successfully trained.

Screenshot image

horczech avatar Oct 24 '22 06:10 horczech

you can try change the SciSharp.TensorFlow.Redist to 2.3.1,ref to https://github.com/dotnet/machinelearning/issues/6040

zdz72113 avatar Oct 24 '22 08:10 zdz72113

@zdz72113 I know, but that's only a temporary fix, not a solution.

horczech avatar Oct 24 '22 14:10 horczech

@horczech right now we only support 2.3.1. We are tracking the upgrade issue here https://github.com/dotnet/machinelearning/issues/6028. Once the upgrade has been completed the version you are using will work fine. Closing this for now as we are tracking elsewhere.

michaelgsharp avatar Nov 28 '22 20:11 michaelgsharp