Does TensorFlow plan to support OpenCL?

I am under the impression that TF only supports CUDA. From my research, the only way to get it to support OpenCL and AMD GPUs is to get a separate “adapter” module such as TF Coriander and suffer through the performance failure: From the GitHub: for the recurrent networks, Coriander is around 4 times slower … Read more

CUDA_ERROR_OUT_OF_MEMORY in tensorflow

When I started to train some neural network, it met the CUDA_ERROR_OUT_OF_MEMORY but the training could go on without error. Because I wanted to use gpu memory as it really needs, so I set the gpu_options.allow_growth = True.The logs are as follows: And after using nvidia-smi command, it gets: After I commented the gpu_options.allow_growth = … Read more

Tensorflow can’t find “cudart64_90.dll” even though it is installed with Path variable set

I found the solution. And it was the good old advice – “Have you tried turning it off and on again?” I restarted the computer, Tensorflow found cudart64_90.dll, but now it could not find cudnn64_7.dll. I’m providing the steps ahead to get rid of the issues I encountered. If you’ve installed Tensorflow GPU version, you’re likely to run … Read more

What is the difference between model.fit() an model.evaluate() in Keras?

fit() is for training the model with the given inputs (and corresponding training labels). evaluate() is for evaluating the already trained model using the validation (or test) data and the corresponding labels. Returns the loss value and metrics values for the model. predict() is for the actual prediction. It generates output predictions for the input … Read more