From 7b5d89046e2317045d0534e6d1cdea438b6b2546 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 5 Jun 2022 21:23:01 +0200 Subject: Fix kwargs --- text_recognizer/networks/transformer/norm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text_recognizer/networks') diff --git a/text_recognizer/networks/transformer/norm.py b/text_recognizer/networks/transformer/norm.py index be38346..537246d 100644 --- a/text_recognizer/networks/transformer/norm.py +++ b/text_recognizer/networks/transformer/norm.py @@ -34,7 +34,7 @@ class PreNorm(nn.Module): self.norm = nn.LayerNorm(normalized_shape) self.fn = fn - def forward(self, x: Tensor, **kwargs: Dict) -> Tensor: + def forward(self, x: Tensor, **kwargs) -> Tensor: """Applies pre norm.""" x = self.norm(x) return self.fn(x, **kwargs) -- cgit v1.2.3-70-g09d2