fix allreduce distributed not working after 2nd iteration
This commit is contained in:
parent
c42d334599
commit
7691cbc2dc
1 changed files with 0 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ class DistributedDataParallel(Module):
|
|||
if isinstance(grad, norch.Tensor):
|
||||
dist.allreduce_sum_tensor(grad)
|
||||
avg_grad = grad / dist.get_world_size()
|
||||
avg_grad = 0*grad + 5
|
||||
return avg_grad
|
||||
|
||||
def register_grads_hooks(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue