Skip to content

Commit

Permalink
Update trainer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gagan3012 committed Jul 2, 2021
1 parent 58dd23b commit dc6242f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keytotext/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def validation_step(self, batch, batch_size):
)
val_acc = self.val_acc(outputs.logits.argmax(1), labels)
self.log("val_loss", loss, prog_bar=True, logger=True)
self.log(f"val_acc", val_acc, prog_bar=True,logger=True)
return loss

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

0 comments on commit dc6242f

Please sign in to comment.