summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-29 15:54:14 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-29 15:54:14 +0100
commit8f08ac1d32bfb3c2df2b5530e9ac6563647fea7b (patch)
treef0d1754787caee18f76ae30b2725081cca959004
parent57e539eecff8211d1a69de81891796797a2ced38 (diff)
chore: remove residual block
-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