Skip to content
Advertisement

Tensorflow Executor failed to create kernel. Unimplemented: Cast string to float is not supported

I’m trying to build a custom CNN classifier for a load of cancer images (.png) using Tensorflow 1.1.0 and TFLearn 0.3.1 by largely following someone else’s CNN classifier here, however when I try to fit my model Tensorflow is throwing out the following errors:

JavaScript

I am using tflearn.data_utils.image_preloader to read the png files in however I have also tried using a few other approaches but seem to always get the same error back. A lot of research has suggested this may be due to bad image files however I get the same issue after wget’ing a dozen jpg images, so it has to be something else. Any advice would be appreciated, my code is below, with the larger project at my git here

JavaScript

Advertisement

Answer

Sorry for late answer (might help others)

I had the same problem and the problem is in your code for regression u have written

JavaScript

But the learning rate is a float value not a string so just write :

JavaScript

It will work

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement