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 108756c commit 3876c71Copy full SHA for 3876c71
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