Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.66 KB

installation.md

File metadata and controls

67 lines (50 loc) · 2.66 KB

Installation

Visual Studio

Install TF.NET:

### install tensorflow C#/F# binding
PM> Install-Package TensorFlow.NET
### install keras for tensorflow
PM> Install-Package TensorFlow.Keras

Install TensorFlow binary (essential). Choose one of the following:

### Install tensorflow binary
### For CPU version
PM> Install-Package SciSharp.TensorFlow.Redist

### For GPU version (CUDA and cuDNN are required)
PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU

dotnet CLI

Install TF.NET:

### install tensorflow C#/F# binding
dotnet add package TensorFlow.NET
### install keras for tensorflow
dotnet add package TensorFlow.Keras

Install TensorFlow binary (essential). Choose one of the following:

### Install tensorflow binary
### For CPU version
dotnet add package SciSharp.TensorFlow.Redist

### For GPU version (CUDA and cuDNN are required)
dotnet add package SciSharp.TensorFlow.Redist-Windows-GPU

...noted that the version digits of the binary (SciSharp.TensorFlow.Redist*) is the same as that of Google's TensorFlow.

...if GPU package is chosen, make very sure that if the versions of TensorFlow (i.e. tf native) and CUDA are compatible:

TF.NET \ TensorFlow tf native 1.14, cuda 10.0 tf native 1.15, cuda 10.0 tf native 2.3, cuda 10.1 tf native 2.4, cuda 11
tf.net 0.4x, tf.keras 0.5 x
tf.net 0.3x, tf.keras 0.2 x
tf.net 0.2x x x
tf.net 0.15 x x
tf.net 0.14 x

Troubleshooting

Still got some problems?