mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-10-28 10:51:31 +01:00
Got rid of world_size attribute
This commit is contained in:
1 parent
0785eae552
commit
76bc2fa75b
1 file changed
+1
-1
@@ -178,7 +178,7 @@ class Reconstructor:
|
||||
loss.backward()
|
||||
|
||||
# Normalize the accumulating total loss
|
||||
total_loss += loss.detach() // self.model.world_size
|
||||
total_loss += loss.detach()
|
||||
|
||||
# If we have a regularizer, we can calculate it separately,
|
||||
# and the gradients will add to the minibatch gradient
|
||||
|
||||
Reference in new issue
Block a user