I am testing TensorFlow and I got confused by a weird bug. I edited the deep MNIST example to use a different set of images, and the algorithm converges well again until around iteration 8000 (91% accuracy at this point) when it crashes with the next error.
tensorflow.python.framework.errors.InvalidArgumentError: ReluGrad input is not finite
At first I thought that some coefficients reached the limit for float, but adding l2-regularization for all weights and offsets did not help to solve the problem. This is always the first relu application to exit stacktrace:
h_conv1 = tf.nn.relu(conv2d(x_image, W_conv1) + b_conv1)
I only work with the processor. Any idea what might cause this and how to get around it?
Edit: I traced this issue to Tensorflow NaN error? The solution works there.
tensorflow gradient-descent
user1111929 Nov 13 '15 at 18:07 2015-11-13 18:07
source share