def refill(self, sess):
    """Clears the current queue and then refills it with new data."""
    sess.run(self._clear_queue)
    # Run until full.
    while sess.run(self._fill_queue):
      pass
Clears the current queue and then refills it with new data.