Skip to content

Commit

Permalink
Update utils.py - Setting multiprocessor base context - Issue#240
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronphilip19 authored Apr 26, 2024
1 parent 3d2a72b commit 80fe01b
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 (num_workers == 0) or (multiprocessing_context is None)
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 80fe01b

Please sign in to comment.