Skip to content

Commit

Permalink
Update pytorch_lightning/plugins/training_type/tpu_spawn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca authored Mar 2, 2021
1 parent a2087c8 commit 6f3a72f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytorch_lightning/plugins/training_type/tpu_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ def save(self, state_dict: Dict, path: str) -> None:
try:
xm.save(state_dict, path)
except RuntimeError as e:
if "Failed to meet rendezvous" in str(e):
pass
else:
if "Failed to meet rendezvous" not in str(e):
raise e

def broadcast(self, obj: object, src: int = 0) -> object:
Expand Down

0 comments on commit 6f3a72f

Please sign in to comment.