Skip to content

ML.Net is not able to load Tensorflow GPU DLL... #871

@zeahmed

Description

@zeahmed

I am trying work with TF GPU native dll so that I can speed up the scoring process. I replaced the tensorflow.dll in microsoft.ml.tensorflow.redist\0.5.0\runtimes\win-x64\native with gpu version but ML.Net throws DLL not found exception.

I did the same with TensorflowSharp and it loads the GPU version perfectly fine.

SOLVED

Updating To TensorFlow GPU DLL

If you want to use TF GPU dll during scoring follow the steps below

  • In your ML.Net nuget, replace the tensorflow.dll in microsoft.ml.tensorflow.redist\<ML.Net-Version>\runtimes\win-x64\native with gpu version (please keep the name same).
  • You can grap the prebuilt gpu dll from https://github.com/fo40225/tensorflow-windows-wheel.
  • Update the graphics card drivers, CUDA and CuDNN according the Tensorflow gpu version you are using.
  • TensorFlowScorer will automatically pick up the TF GPU version.

Metadata

Metadata

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