Skip to content

Commit b449f6f

Browse files
committed
Sync loss on validation step
1 parent 1ba13a7 commit b449f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/clap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def validation_step(self, batch, batch_idx):
197197
_, _, loss = self.forward(batch)
198198
B = batch[0].shape[0]
199199

200-
self.log("val_loss", loss, prog_bar=True, batch_size=B)
200+
self.log("val_loss", loss, prog_bar=True, batch_size=B, sync_dist=True)
201201
return loss
202202

203203
def predict_step(self, batch, batch_idx, dataloader_idx=None):

0 commit comments

Comments
 (0)