Tensorflow Autoencoder With Custom Training Examples From Binary File
I'm trying to adapt the Tensorflow Autoencoder code found here (https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/autoencoder.py) to use my
Solution 1:
My first question is why do I have Tensors of shape (1, 128, 29, 29, 1) when I was expecting (128,29,29,1)? Am I missing something here?
You need to remove the bracket in sess.run:
batch_xs = sess.run(data_batch)
Unfortunately, when running the code I get this error: ValueError: Cannot feed value of shape (1, 128, 29, 29, 1) for Tensor 'Placeholder:0', which has shape '(?, 841)'
You have declared your placeholder X as which is of [None, 841] and feeding an input [128, 29, 29, 1]:
X = tf.placeholder("float", [None, n_input])
Either change your feed input or your placeholder, so that both have the same size.
Note: Your handling of queues are inefficient, you directly pass the data_batch
as input to your network
and not through the feed in
mechanism.
Post a Comment for "Tensorflow Autoencoder With Custom Training Examples From Binary File"