You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run GPU and CPU by falling back to CPU if no GPU #333
I want my project to run on GPU if it can but also, to be universal, fall back to CPU if no GPU. The way things are worded above and throughout the site makes it sound like I can do one or the other. For example, I want to install the package above for GPU version but it says CUDA and cuDNN are required.
Do I install both packages to handle both types of machines?
I saw the code to use session options to specify GPU. Do I do this still and it will still run or fallback on CPU if no GPU?
for some unknown reason, inside visual studio 2017 community edition, I can not have both TensorFlowNET.Examples and TensorFlowNET.Examples.GPU included simutanously in the solution. To be able to properly rebuild the solution, you need to exclude one of the above 2 projects.
Another thing to mention is that the solution uses tensorflow 1.14.0, so you might need CUDA 10.0 and cudnn 7.4.2 to work properly.
Yes, you say the situation is present and correct. But there's no way. Separating the two directories means repeatedly downloading the data. If put together, the NetCore project has this problem.
Activity
fix SciSharp#333 : Add a project file for GPU examples 。
Oceania2018 commentedon Aug 1, 2019
@mjbedford2017 @Jiuyong PRed a quick/ simple solution.
fix SciSharp#333 : Add a project file for GPU examples 。
captainst commentedon Aug 3, 2019
for some unknown reason, inside visual studio 2017 community edition, I can not have both TensorFlowNET.Examples and TensorFlowNET.Examples.GPU included simutanously in the solution. To be able to properly rebuild the solution, you need to exclude one of the above 2 projects.
Another thing to mention is that the solution uses tensorflow 1.14.0, so you might need CUDA 10.0 and cudnn 7.4.2 to work properly.
Jiuyong commentedon Aug 4, 2019
Yes, you say the situation is present and correct. But there's no way. Separating the two directories means repeatedly downloading the data. If put together, the NetCore project has this problem.