Initialize worker process with shared dataset. Args: dataset: The dataset to share across worker processes
(dataset: Dataset)
| 60 | |
| 61 | |
| 62 | def init_worker(dataset: Dataset) -> None: |
| 63 | """ |
| 64 | Initialize worker process with shared dataset. |
| 65 | |
| 66 | Args: |
| 67 | dataset: The dataset to share across worker processes |
| 68 | """ |
| 69 | global shared_ds |
| 70 | shared_ds = dataset |
| 71 | |
| 72 | |
| 73 | def extract_id(utt_id: UtteranceID) -> str: |
nothing calls this directly
no outgoing calls
no test coverage detected