MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _read_into_queue

Function _read_into_queue

python/paddle/reader/decorator.py:678–687  ·  view source on GitHub ↗
(reader, queue)

Source from the content-addressed store, hash-verified

676 )
677
678 def _read_into_queue(reader, queue):
679 try:
680 for sample in reader():
681 if sample is None:
682 raise ValueError("sample has None")
683 queue.put(sample)
684 queue.put(None)
685 except Exception as e:
686 queue.put("")
687 raise e
688
689 def queue_reader():
690 queue = fork_context.Queue(queue_size)

Callers

nothing calls this directly

Calls 3

ValueErrorClass · 0.85
readerFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected