MCPcopy Create free account
hub / github.com/NVIDIA/DALI / copy_callback

Function copy_callback

dali/test/python/test_external_source_parallel_shared_batch.py:126–132  ·  view source on GitHub ↗
(task_queue, res_queue, num_samples)

Source from the content-addressed store, hash-verified

124
125
126def copy_callback(task_queue, res_queue, num_samples):
127 msgs = task_queue.get(num_samples=num_samples)
128 if msgs is None:
129 return
130 assert len(msgs) > 0
131 res_queue.put(msgs)
132 return msgs
133
134
135def _test_queue_recv(start_method, worker_params, capacity, send_msgs, recv_msgs, send_one_by_one):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected