Invalid argument error (incompatible shapes) with TensorFlow
问题 I'm trying to train a simple network with tensorflow for the MNIST dataset. At the moment though it is not working. It is basically a modified version of the example given on the TensorFlow website. I just changed a couple lines and removed a layer to see what happened. Here is my code: #!/usr/bin/python import input_data import tensorflow as tf #MNIST dataset def weight_variable(shape): initial=tf.truncated_normal(shape,stddev=0.1) return tf.Variable(initial) def bias_variable(shape):