summaryrefslogtreecommitdiff
path: root/src/text_recognizer/networks/residual_network.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/text_recognizer/networks/residual_network.py')
-rw-r--r--src/text_recognizer/networks/residual_network.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text_recognizer/networks/residual_network.py b/src/text_recognizer/networks/residual_network.py
index 1b5d6b3..046600d 100644
--- a/src/text_recognizer/networks/residual_network.py
+++ b/src/text_recognizer/networks/residual_network.py
@@ -278,7 +278,8 @@ class ResidualNetworkEncoder(nn.Module):
if self.stn is not None:
x = self.stn(x)
x = self.gate(x)
- return self.blocks(x)
+ x = self.blocks(x)
+ return x
class ResidualNetworkDecoder(nn.Module):