Skip to content

Commit

Permalink
Update test_trainer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthsub committed Apr 7, 2021
1 parent 27db048 commit 5d83193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/trainer/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ def validation_step(self, batch, batch_idx):

def validation_epoch_end(self, outputs) -> None:
avg_x = torch.stack([x['x'] for x in outputs]).mean()
self.log('avg_x', avg_x)
self.log('avg_x', avg_x, sync_dist=True)

model = TestModel()
checkpoint = ModelCheckpoint(dirpath=tmpdir, monitor='avg_x', mode='min', save_top_k=1)
Expand Down

0 comments on commit 5d83193

Please sign in to comment.