We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566e4ce commit 2911102Copy full SHA for 2911102
pytorch_lightning/overrides/fairscale.py
@@ -61,8 +61,8 @@ def state_dict(self) -> Dict[str, Any]:
61
62
class LightningModelDispatch(ModelDispatch):
63
def forward(self, *inputs, **kwargs): # type: ignore
64
- if self.broadcast_buffers and len(list(self.base_model.buffers())) > 0:
65
- self.sync_buffers()
+ if self.broadcast_model_buffers:
+ self.sync_buffers(non_blocking=False)
66
if self.base_model.training:
67
output = self.base_model.training_step(*inputs, **kwargs)
68
elif self.base_model.testing:
0 commit comments