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