SciSharp/NumSharp

NumSharp and Tensorflow.NET works on Desktop but fails on Cloud Web Service (.NET 5)

marsousi opened this issue · 0 comments

NumSharp and Tensorflow.NET work fine on my desktop computer. But once I publish it on the cloud service (Azure Web Service using ASP.NET Core - .NET 5), even running a simple code to define an NDArray gives the following error:

_DllNotFoundException: Unable to load DLL 'tensorflow' or one of its dependencies: The specified module could not be found. (0x8007007E)
Tensorflow.c_api.TF_NewStatus()

TypeInitializationException: The type initializer for 'Tensorflow.Binding' threw an exception.
Tensorflow.Binding.get_tf()_

The following packages are installed in Visual Studio Solution:

SciSharp.TensorFlow.Redist (2.3.1)
NumSharp (0.30.0)
NumSharp.Bitmap (0.30.0)
SharpCV (0.10.1)
Rensorflow.Net (0.60.5)
Tensorflow.Keras (0.6.5)
Google.Protobuf (3.19.1)
Protobuf.Text (0.5.0)
Serilog.Sinks.Console (4.0.1)

and some more but I don't think they would interfere with the above packages

Besides, I tried to change the Release CPU from AnyCPU to x64, but then the cloud service fails running.

Am I missing something?