From fd6eebff8c0192e448744757cf69e1cb959ccce7 Mon Sep 17 00:00:00 2001 From: Andrei-Cristian Rad <31438959+radandreicristian@users.noreply.github.com> Date: Tue, 18 Jan 2022 19:48:32 +0200 Subject: [PATCH] Fix typo in lightning docs example (#778) --- docs/source/pages/lightning.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/pages/lightning.rst b/docs/source/pages/lightning.rst index b73d9a4f7cf..df1744a159e 100644 --- a/docs/source/pages/lightning.rst +++ b/docs/source/pages/lightning.rst @@ -115,7 +115,7 @@ If ``on_epoch`` is True, the logger automatically logs the end of epoch metric v def training_epoch_end(self, outputs): # this will compute and reset the metric automatically at the epoch end - self.log('train_epoch_accuracy', self.accuracy) + self.log('train_epoch_accuracy', self.training_acc) # this will not reset the metric automatically at the epoch end so you # need to call it yourself