diff options
-rw-r--r-- | text_recognizer/networks/transformer/norm.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |