machinelearning-samples
machinelearning-samples copied to clipboard
'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'
i test this sample sample with winform application , But when i run app in this line
var prediction = predictionEngine.Predict(imageToPredict);
i get this error System.EntryPointNotFoundException: 'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'
in that sample model is ok and all process run well, but in my app i got this error .
I think ml.net support tensorflow 2.3.1 not yet support 2.4, so you must download SciSharp.TensorFlow.Redist 2.3.1
@tondangerza @Oceania2018 i tested these version SciSharp.TensorFlow.Redist 2.3.1 and 2.3 and 2.4 but i have this error now , i dont know where is the problem .
@masgh021 I try install tensorflow 2.4.1 and run application after that I got error "Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.":"" same
and I think you should check Debug folder that tensorflow.dll, if v.2.3.1(CPU) size should to be 141MB
try delete it and re-build.
@tondangerza
i delete tensorflow.dll(146MB) and rebuild with version 2.3.1
and it's size change to 141MB and it worked for me , thanks man for help .
i have another question , how make a image classification model with model builder that it use in-memory image ?
@tondangerza
When using SciSharp.TensorFlow.Redist-Windows-GPU v2.4.0 with CUDA 11.0 and CUDNN v8.0.4, I get the same error 'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'
. Rebuilding with version v2.3.0 or v2.3.1 with CUDA 10.1 and CUDNN v7.6.5.32 however provide another error: CUDA error: no kernel image is available for execution on the device
This StackOverflow question proposes that my Quadro M1200 is not compatible with v2.3.x. How should I move on?
Same in DeepLearning_ImageClassification
:
Exception has occurred: CLR/System.EntryPointNotFoundException
An unhandled exception of type 'System.EntryPointNotFoundException' occurred in Microsoft.ML.Vision.dll: 'Unable to find an entry point named 'TF_StringEncodedSize' in DLL 'tensorflow'.'
<PackageReference Include="SciSharp.TensorFlow.Redist-Windows-GPU" Version="2.10.3" />
Seems to work with:
<PackageReference Include="SciSharp.TensorFlow.Redist-Windows-GPU" Version="2.3.1" />
The issue still occurres with the latest pre-release ML.NET:
<PackageReference Include="Microsoft.ML" Version="3.0.0-preview.23511.1" />
<PackageReference Include="Microsoft.ML.ImageAnalytics" Version="3.0.0-preview.23511.1" />
<PackageReference Include="Microsoft.ML.Vision" Version="3.0.0-preview.23511.1" />
<!--PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.3.1" /-->
<PackageReference Include="SciSharp.TensorFlow.Redist-Windows-GPU" Version="2.10.3" />