ValueError: Input 0 of layer sequential is incompatible with the layer: expected ndim=3, found ndim=4. Full shape received: [None, 25, 25, 1]
I have solved the problem by changing the shape of my dataset using:
tf.reshape(data, [25, 25])