summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/conformer/glu.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-01 23:15:54 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-01 23:15:54 +0200
commit90f7e3882610945077949b96a011c92a8e7c8106 (patch)
tree6be278e48c2279f20043fba646d7e4c920957ecf /text_recognizer/networks/conformer/glu.py
parent729867b14754bffd98a3406b5d3a2eb9d09bc3bc (diff)
Format
Diffstat (limited to 'text_recognizer/networks/conformer/glu.py')
-rw-r--r--text_recognizer/networks/conformer/glu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/networks/conformer/glu.py b/text_recognizer/networks/conformer/glu.py
index 016b684..1a7c201 100644
--- a/text_recognizer/networks/conformer/glu.py
+++ b/text_recognizer/networks/conformer/glu.py
@@ -6,7 +6,7 @@ class GLU(nn.Module):
def __init__(self, dim: int) -> None:
super().__init__()
self.dim = dim
-
+
def forward(self, x: Tensor) -> Tensor:
out, gate = x.chunk(2, dim=self.dim)
return out * gate.sigmoid()