How to train TensorFlow network using a generator to produce inputs? : <p>The TensorFlow <a href="https://www.tensorflow.org/versions/r0.10/how_tos/reading_data/index.html" rel="noreferrer">docs</a> describe a bunch of ways to read data using TFRecordReader, TextLineReader, QueueRunner etc and queues.</p>

<p>What I would like to do is much, much simpler:  I have a python generator function that produces an infinite sequence of training data as (X, y) tuples (both are numpy arrays, and the first dimension is the batch size).  I just want to train a network using that data as inputs.  </p>

<p>Is there a simple self-contained example of training a TensorFlow network using a generator which produces the data?  (along the lines of the MNIST or CIFAR examples)</p>
