Skip to content

Commit

Permalink
DDP bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jason <[email protected]>
  • Loading branch information
blisc committed May 18, 2020
1 parent d62f021 commit fa6553f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nemo/backends/pytorch/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,7 @@ def save_state_to(self, path):
for module in AppState().modules:
key = module.unique_instance_id
num_trainable_weights = module.num_weights
self.ddp_module_dict[key] = module
if not isinstance(module, DDP) and isinstance(module, torch.nn.Module) and num_trainable_weights > 0:
# gpf = 1
# if gradient_predivide:
Expand Down

0 comments on commit fa6553f

Please sign in to comment.