Skip to content

Added support for running TF based models on GPU in Linux #4277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/api-reference/tensorflow-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ SciSharp.TensorFlow.Redist v1.14.0
### GPU support
GPU based TensorFlow is currently supported on:
* Windows
* Linux
As of now TensorFlow does not support running on GPUs for MacOS, so we cannot support this currently.

#### Prerequisites
You must have at least one CUDA compatible GPU, for a list of compatible GPUs see
Expand All @@ -26,7 +28,8 @@ following [Nvidia's Install guide](https://docs.nvidia.com/cuda/cuda-quick-start
#### Usage
To use TensorFlow with GPU support take a NuGet dependency on the following package depending on your OS:

Windows -> SciSharp.TensorFlow.Redist-Windows-GPU
* Windows -> SciSharp.TensorFlow.Redist-Windows-GPU
* Linux -> SciSharp.TensorFlow.Redist-Linux-GPU

No code modification should be necessary to leverage the GPU for TensorFlow operations.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@

<ItemGroup>
<PackageReference Include="Microsoft.ML.Onnx.TestModels" Version="$(MicrosoftMLOnnxTestModelsVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(OS)' == 'Windows_NT'">
<PackageReference Include="SciSharp.TensorFlow.Redist-Windows-GPU" Version="$(TensorFlowVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(OS)' == 'Unix'">
<PackageReference Include="SciSharp.TensorFlow.Redist-Linux-GPU" Version="$(TensorFlowVersion)" />
</ItemGroup>

<ItemGroup>
<Content Include="$(ObjDir)DnnImageModels\ResNet18Onnx\ResNet18.onnx">
Expand Down