Tensorflow: Layer size dependent on batch size?
问题 I am currently trying to get familiar with the Tensorflow library and I have a rather fundamental question that bugs me. While building a convolutional neural network for MNIST classification I tried to use my own model_fn. In which usually the following line occurs to reshape the input features. x = tf.reshape(x, shape=[-1, 28, 28, 1]) , with the -1 referring to the input batch size. Since I use this node as input to my convolutional layer, x = tf.reshape(x, shape=[-1, 28, 28, 1]) conv1 = tf