From 8f08ac1d32bfb3c2df2b5530e9ac6563647fea7b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 29 Jan 2022 15:54:14 +0100 Subject: chore: remove residual block --- text_recognizer/networks/transformer/residual.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 text_recognizer/networks/transformer/residual.py (limited to 'text_recognizer/networks') 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 -- cgit v1.2.3-70-g09d2