Skip to content

Commit

Permalink
Separated the base context inference for the multiprocessor for the t…
Browse files Browse the repository at this point in the history
…rainer

Issue drivendataorg#240
  • Loading branch information
sambujangfofana authored Apr 26, 2024
1 parent 70e79f2 commit 879a776
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zamba/pytorch_lightning/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,8 @@ def __init__(
transform=transform,
video_loader_config=video_loader_config,
)
self.multiprocessing_context: BaseContext = (
None
if (multiprocessing_context is None) or (num_workers == 0)
else multiprocessing_context
)
self.multiprocessing_context: BaseContext = multiprocessing_context #Modified the multiprocessing context to not factor in num_workers decoupliing it


super().__init__(*args, **kwargs)

Expand Down

0 comments on commit 879a776

Please sign in to comment.