Skip to content

Commit

Permalink
Remove sync_dist from class metrics as they are automatically reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNaren authored Nov 16, 2020
1 parent 0d08e6d commit df0c174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pl_bolts/models/self_supervised/ssl_finetuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def validation_step(self, batch, batch_idx):
acc = self.val_acc(logits, y)

self.log('val_loss', loss, prog_bar=True, sync_dist=True)
self.log('val_acc', self.val_acc, sync_dist=True)
self.log('val_acc', self.val_acc)

return loss

Expand All @@ -115,7 +115,7 @@ def test_step(self, batch, batch_idx):
acc = self.test_acc(logits, y)

self.log('test_loss', loss, sync_dist=True)
self.log('test_acc', self.test_acc, sync_dist=True)
self.log('test_acc', self.test_acc)

return loss

Expand Down

0 comments on commit df0c174

Please sign in to comment.