summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/conformer/scale.py
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks/conformer/scale.py')
-rw-r--r--text_recognizer/networks/conformer/scale.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/text_recognizer/networks/conformer/scale.py b/text_recognizer/networks/conformer/scale.py
deleted file mode 100644
index d012b81..0000000
--- a/text_recognizer/networks/conformer/scale.py
+++ /dev/null
@@ -1,13 +0,0 @@
-"""Scale layer."""
-from typing import Dict
-from torch import nn, Tensor
-
-
-class Scale(nn.Module):
- def __init__(self, scale: float, fn: nn.Module) -> None:
- super().__init__()
- self.scale = scale
- self.fn = fn
-
- def forward(self, x: Tensor, **kwargs) -> Tensor:
- return self.fn(x, **kwargs) * self.scale