| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This article will explains in steps how to install Tensorflow-GPU and setup with Tensorflow.NET in a C# project.
Make sure your projects are targeting x64 as tensorflow does not support x32 architecture.
Uninstall any existing tensorflow redist packages and install the following:
PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU
PM> Install-Package TensorFlow.NETRebuild your project, ensure that tensorflow.dll is copied to your output folder (e.g. bin/debug/tensorflow.dll or bin/debug/runtimes/win-x64/native/tensorflow.dll) and check its size.
The .dll should be above 300MB. If it's below 150MB - it is likely to be a CPU version; delete it and rebuild the project.
You need to meet tensorflow-gpu's requirements.
::Set new environment variables:
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
CUDA_PATH_V11_7=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
::Append To PATH:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\CUPTI\libx64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin.\bin\* -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin
.\include\* -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include
.\lib\* -> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\libtensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2114 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 3GB, pci bus id: 0000:04:00.0, compute capability: 6.1)
| Back | FazBrowse Home | New Git URL |