Skip to content

Commit

Permalink
turning on sync for distributed setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rballeba committed Aug 16, 2024
1 parent b070e88 commit 223fbc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def general_step(self, batch, batch_idx, step: str):
batch_size=batch_len,
on_step=False,
on_epoch=True,
sync_dist=True
)
self.log_accuracies(x_hat, batch.y, batch_len, step)
return loss
Expand Down

0 comments on commit 223fbc4

Please sign in to comment.