summaryrefslogtreecommitdiff
path: root/text_recognizer
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-05 21:20:16 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-05 21:20:16 +0200
commitbdda28c77798d3c08913fd9c9059710f288e0e41 (patch)
treee5d3f3664db8ebb69e15388260b3c1801ef816fc /text_recognizer
parent425af1bce8362efd97682a5042e76a60bfc28060 (diff)
Fix kwargs
Diffstat (limited to 'text_recognizer')
-rw-r--r--text_recognizer/networks/conformer/scale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/networks/conformer/scale.py b/text_recognizer/networks/conformer/scale.py
index da736a3..d012b81 100644
--- a/text_recognizer/networks/conformer/scale.py
+++ b/text_recognizer/networks/conformer/scale.py
@@ -9,5 +9,5 @@ class Scale(nn.Module):
self.scale = scale
self.fn = fn
- def forward(self, x: Tensor, kwargs: Dict) -> Tensor:
+ def forward(self, x: Tensor, **kwargs) -> Tensor:
return self.fn(x, **kwargs) * self.scale