summaryrefslogtreecommitdiff
path: root/text_recognizer/networks
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks')
-rw-r--r--text_recognizer/networks/transformer/residual.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/text_recognizer/networks/transformer/residual.py b/text_recognizer/networks/transformer/residual.py
deleted file mode 100644
index 825a0fc..0000000
--- a/text_recognizer/networks/transformer/residual.py
+++ /dev/null
@@ -1,10 +0,0 @@
-"""Residual function."""
-from torch import nn, Tensor
-
-
-class Residual(nn.Module):
- """Residual block."""
-
- def forward(self, x: Tensor, residual: Tensor) -> Tensor:
- """Applies the residual function."""
- return x + residual