Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed May 10, 2022
1 parent d22080b commit 197b93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame_semantic_transformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def training_epoch_end(self, training_step_outputs: list[Any]) -> None:
self.model.save_pretrained(path)

def validation_epoch_end(self, validation_step_outputs: list[Any]) -> None:
losses = [out["losses"].cpu() for out in validation_step_outputs]
losses = [out["loss"].cpu() for out in validation_step_outputs]
self.average_validation_loss = np.round(
torch.mean(torch.stack(losses)).item(),
4,
Expand Down

0 comments on commit 197b93f

Please sign in to comment.