summaryrefslogtreecommitdiff
path: root/text_recognizer
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-04-05 23:25:25 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-04-05 23:25:25 +0200
commit5e11924ca6aaea7898caca94675f41f67706a406 (patch)
treeab1e3d9ea4a8052ecbe6625821720c27e067d2f3 /text_recognizer
parentdedf8deb025ac9efdad5e9baf9165ef63d6829ff (diff)
Fix typing
Diffstat (limited to 'text_recognizer')
-rw-r--r--text_recognizer/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py
index 11d1eb1..f4df3f3 100644
--- a/text_recognizer/models/base.py
+++ b/text_recognizer/models/base.py
@@ -40,7 +40,7 @@ class LitBaseModel(pl.LightningModule):
args = {} or criterion.args
return getattr(nn, criterion.type)(**args)
- def _configure_optimizer(self) -> torch.optim.Optimizer:
+ def _configure_optimizer(self) -> Type[torch.optim.Optimizer]:
"""Configures the optimizer."""
args = {} or self._optimizer.args
if self._optimizer.type == "MADGRAD":