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 c9ec267 commit f70aa9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def log_accuracies(
x_hat,
y,
step,
sync_dist=True
)
for accuracy in accuracies:
self.log(
Expand All @@ -102,6 +103,7 @@ def log_accuracies(
on_step=False,
on_epoch=True,
batch_size=batch_len,
sync_dist=True
)

def test_step(self, batch, batch_idx):
Expand Down

0 comments on commit f70aa9e

Please sign in to comment.