Skip to content

Commit

Permalink
update DDP call
Browse files Browse the repository at this point in the history
Signed-off-by: Jason <[email protected]>
  • Loading branch information
blisc committed Feb 13, 2020
1 parent f1a57bb commit dabaea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nemo/backends/pytorch/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,9 @@ def train(

# By default, disable broadcast_buffers. This disables batch norm synchronization on forward
# pass
pmodule = DDP(pmodule, device_ids=[self.local_rank], broadcast_buffers=False)
pmodule = DDP(
pmodule, device_ids=[self.local_rank], broadcast_buffers=False, find_unused_parameters=True
)

# # Convert batchnorm modules to synced if applicable
# if synced_batchnorm and isinstance(pmodule, torch.nn.Module):
Expand Down

0 comments on commit dabaea2

Please sign in to comment.