Skip to content

Commit

Permalink
reset
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Aug 28, 2022
1 parent 5ec39ad commit 39f5f72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/pytorch_lightning/strategies/ddp_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def _setup_model(self, model: Module) -> DistributedDataParallel:

def setup_distributed(self) -> None:
log.detail(f"{self.__class__.__name__}: setting up distributed...")
reset_seed()
self.set_world_ranks()
rank_zero_only.rank = self.global_rank
self._process_group_backend = self._get_process_group_backend()
Expand Down
1 change: 0 additions & 1 deletion src/pytorch_lightning/strategies/tpu_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ def reduce(

def setup_distributed(self) -> None:
self._launched = True
reset_seed()
self.set_world_ranks()
rank_zero_only.rank = self.global_rank

Expand Down

0 comments on commit 39f5f72

Please sign in to comment.