(func, Q, data, idx, idx_to_fn=False)
| 94 | |
| 95 | |
| 96 | def _do_parallel_data_prefetch(func, Q, data, idx, idx_to_fn=False): |
| 97 | # create dummy dataset instance |
| 98 | |
| 99 | # run prefetching |
| 100 | if idx_to_fn: |
| 101 | res = func(data, worker_id=idx) |
| 102 | else: |
| 103 | res = func(data) |
| 104 | Q.put([idx, res]) |
| 105 | Q.put("Done") |
| 106 | |
| 107 | |
| 108 | def parallel_data_prefetch( |
nothing calls this directly
no outgoing calls
no test coverage detected