From 537b848424fa85ec17c9e1f291a76f1191dff311 Mon Sep 17 00:00:00 2001 From: Marie Weiel Date: Tue, 12 Mar 2024 19:01:47 +0100 Subject: [PATCH] make docstring single-line --- tutorials/torch_example.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tutorials/torch_example.py b/tutorials/torch_example.py index a6375e67..9dcd3a02 100755 --- a/tutorials/torch_example.py +++ b/tutorials/torch_example.py @@ -164,9 +164,7 @@ def configure_optimizers(self) -> torch.optim.SGD: return torch.optim.SGD(self.parameters(), lr=self.lr) def on_validation_epoch_end(self): - """ - Calculate and store the model's validation accuracy after each epoch. - """ + """Calculate and store the model's validation accuracy after each epoch.""" val_acc_val = self.val_acc.compute() self.val_acc.reset() if val_acc_val > self.best_accuracy: