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.
2 parents 91e089d + 4c34855 commit 78e0d19Copy full SHA for 78e0d19
pytorch_lightning/utilities/distributed.py
@@ -206,6 +206,6 @@ def all_gather_ddp_if_available(
206
if sync_grads:
207
return AllGatherGrad.apply(tensor, group)
208
else:
209
- with torch.no_grad:
+ with torch.no_grad():
210
211
return tensor
0 commit comments