summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/vqvae/quantizer.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-04 22:15:36 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-04 22:15:36 +0200
commit1bccf71cf4eec335001b50a8fbc0c991d0e6d13a (patch)
treedd58219f94836a857dfbe794585d6f68ee28dbdc /text_recognizer/networks/vqvae/quantizer.py
parentefe850821b88306481ab5aa2a5f79a2581e4458c (diff)
Add conv attention, up and downsampling to vqvae module
Diffstat (limited to 'text_recognizer/networks/vqvae/quantizer.py')
-rw-r--r--text_recognizer/networks/vqvae/quantizer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/networks/vqvae/quantizer.py b/text_recognizer/networks/vqvae/quantizer.py
index 1b59e78..a4f11f0 100644
--- a/text_recognizer/networks/vqvae/quantizer.py
+++ b/text_recognizer/networks/vqvae/quantizer.py
@@ -7,7 +7,7 @@ from einops import rearrange
import torch
from torch import nn
from torch import Tensor
-from torch.nn import functional as F
+import torch.nn.functional as F
class EmbeddingEMA(nn.Module):