migueldeicaza / TensorFlowSharp

TensorFlow API for .NET languages
MIT License
3.14k stars 578 forks source link

Using TensorflowSharp with UWP #260

Open ActiveNick opened 6 years ago

ActiveNick commented 6 years ago

I am trying to use TensorflowSharp with Unity ML Agents to produce a UWP build. However I am getting an error where it is unable to load libtensorflow.dll. Do you have a working sample using .NET Standard 2.0 DLL version of TF# with UWP?

I have documented my issues in the Unity ML Agents GitHub repo here: https://github.com/Unity-Technologies/ml-agents/issues/648.

edwardyehuang commented 6 years ago

You need to download the tensorflow.dll, and rename to libtensorflow.dll, and put it with your exe. If you are using the GPU version, you also need to have the cudnn dll with cuda install

ActiveNick commented 6 years ago

I can confirm that libtensorflow.dll is already in the same folder as the exe after deployment. No dice.

edwardyehuang commented 6 years ago

@ActiveNick Are you using the GPU dll? Or just CPU dll

bbday commented 6 years ago

rember to force load with x64 and not 32 bit