summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/vqvae/encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks/vqvae/encoder.py')
-rw-r--r--text_recognizer/networks/vqvae/encoder.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/text_recognizer/networks/vqvae/encoder.py b/text_recognizer/networks/vqvae/encoder.py
index e480545..f086c6b 100644
--- a/text_recognizer/networks/vqvae/encoder.py
+++ b/text_recognizer/networks/vqvae/encoder.py
@@ -21,11 +21,9 @@ class Encoder(nn.Module):
activation: str = attr.ib()
encoder: nn.Sequential = attr.ib(init=False)
- def __attrs_pre_init__(self) -> None:
- super().__init__()
-
def __attrs_post_init__(self) -> None:
"""Post init configuration."""
+ super().__init__()
self.encoder = self._build_compression_block()
def _build_compression_block(self) -> nn.Sequential: