In the MNIST tutorial x, there y_are placeholders with a specific form:
x = tf.placeholder(tf.float32, shape=[None, 784])
y_ = tf.placeholder(tf.float32, shape=[None, 10])
shape=[None, 784] means this placeholder has 2 dimensions.
So, to answer your first question:
are x and y_ variables with sizes suitable for one example
The first dimension can contain an undefined number of elements (so, 1, 2, ... 50 ...), and the second dimension can contain exaclly 784 = 28 * 28 elements (which are features of a single MNIST image).
If you load a chart with a python list with the form [1, 784] or [50, 784], then this is absolutely the same for tenorflow, it can handle it without any problems.
batch [0], batch [1] - lists of such inputs and outputs? in the textbook, they define a batch call batch = datasets.train.next_batch(50). In this way:
- batch [0] - [50, 784]
- batch [1] - [50, 10]
TensorFlow ? , x y_ -?
Tensorflow .
, Cannot feed value of shape (n, m) for Tensor u'ts:0', which has shape '(m,)'
.
, .