1

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.

Community
  • 1
  • 1
para
  • 11
  • 2

1 Answers1

0

by keras documentation, the generator runs parallel by default

DNK
  • 1,448
  • 2
  • 13
  • 12