MCPcopy Create free account
hub / github.com/PaddlePaddle/EasyData / GeneratorEnqueuer

Class GeneratorEnqueuer

deploy/python/dataaug/utils/data_utils.py:34–171  ·  view source on GitHub ↗

Builds a queue out of a data generator. Args: generator: a generator function which endlessly yields data use_multiprocessing (bool): use multiprocessing if True, otherwise use threading. wait_time (float): time to sleep in-between calls to `put()`.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected