Skip to content

Commit

Permalink
Fix root node resolution (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol authored and justusschock committed Jun 29, 2020
1 parent 6b3b318 commit 7867466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/trainer/distrib_data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ def load_spawn_weights(self, original_model):

def resolve_root_node_address(self, root_node):
if '[' in root_node:
name = root_node.split('[')[0]
number = root_node.split(',')[0]
name, numbers = root_node.split('[', maxsplit=1)
number = numbers.split(',', maxsplit=1)[0]
if '-' in number:
number = number.split('-')[0]

Expand Down

0 comments on commit 7867466

Please sign in to comment.