Similar to this post i am seeking a way to run a generator of similar structure parallel.
def generator():
while True:
# do slow calculation
yield x
It is a generator i am running for fit_generator
in keras in which it would be highly desirable to run both in parallel to make things more efficient.