Skip to content
Snippets Groups Projects
Commit 20dfcdb4 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data.datamodule] Experiment with fork/spawn setup

parent 02bf1be7
No related branches found
No related tags found
1 merge request!6Making use of LightningDataModule and simplification of data loading
Pipeline #78067 canceled
......@@ -584,7 +584,7 @@ class ConcatDataModule(lightning.LightningDataModule):
num_workers = value or multiprocessing.cpu_count()
self._dataloader_multiproc["num_workers"] = num_workers
if num_workers > 0 and sys.platform == "darwin":
if num_workers > 0: # and sys.platform == "darwin":
self._dataloader_multiproc[
"multiprocessing_context"
] = multiprocessing.get_context("spawn")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment