From 71e36c9d9bf1ec2e0b6b4fe65850eec8f450f3af Mon Sep 17 00:00:00 2001 From: Luke Wood Date: Wed, 2 Sep 2020 01:29:57 -0700 Subject: [PATCH] Fix string formatting (#77) * Update trainer.py --- trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trainer.py b/trainer.py index 205e9461..815c8a6e 100644 --- a/trainer.py +++ b/trainer.py @@ -49,7 +49,7 @@ def __init__(self, initial_checkpoint, config): ) else: raise NotImplementedError( - "{} is not implemented. You can change the optimizer manually in trainer.py." + f"{self.config.optimizer} is not implemented. You can change the optimizer manually in trainer.py." ) if initial_checkpoint["optimizer_state"] is not None: