def _inf_train_gen(self):
        """A generator function for input training data."""
        while True:
            for images, targets in self.train_data_gen():
                yield images
A generator function for input training data.
examples/inverse_gan_author_utils.py