Tensorflow Reading Data From Tfrecords Into Mini Batches Properly
I am trying to convert data from csv to tfrecords then read it out in mini batches and do a simple MLP but I am getting some errors that I can't figure out. RuntimeError: Attempt
Solution 1:
Placeholders are one way of getting data into your model. Queue's are another. You can override the value in a tensor generated by a queue runner like any other tensor (e.g. placeholders), but you can't feed the results from a tensor into a placeholder in the same graph/session run.
In other words, rather than creating placeholders, just use the output of your tf.train.shuffle_batch
call:
X = avgs_batch
Y = pdiff_batch
(or replace all references to X
and Y
with avgs_batch
and pdiff_batch
respectively)
Post a Comment for "Tensorflow Reading Data From Tfrecords Into Mini Batches Properly"