Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Are there any differences between tensorflow-gpu and tensorflow?


Asked by Kate Patel on Dec 13, 2021 FAQ



Where the official web says that the tensorflow already packed with GPU support. So are there any differences between the two libraries? My hypothesis is in the early version tensorflow doesn't have native GPU support they create separate libraries, and the tensorflow-gpu is still updated for older users who already use tensorflow-gpu.
Likewise,
SciSharp.TensorFlow.Redist-Windows-GPU contains the TensorFlow C library GPU version 2.3.0 redistributed as a NuGet package. There is a newer version of this package available. See the version list below for details. For projects that support PackageReference, copy this XML node into the project file to reference the package.
Next, TensorFlow Lite for AI inference on mobile devices now has support for making use of OpenCL on Android devices. In doing so, the TFLite performance presents around a 2x speed-up over the existing OpenGL back-end.
In this manner,
There used to be a tensorflow-gpu package that you could install in a snap on MacBook Pros with NVIDIA GPUs, but unfortunately it's no longer supported these days due to some driver issues. Luckily, it's still possible to manually compile TensorFlow with NVIDIA GPU support.
Keeping this in consideration,
Why is TensorFlow 2 much slower than TensorFlow 1? It's been cited by many users as the reason for switching to Pytorch, but I've yet to find a justification/explanation for sacrificing the most important practical quality, speed, for eager execution.