summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/transformer/embeddings/fourier.py
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks/transformer/embeddings/fourier.py')
-rw-r--r--text_recognizer/networks/transformer/embeddings/fourier.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/text_recognizer/networks/transformer/embeddings/fourier.py b/text_recognizer/networks/transformer/embeddings/fourier.py
index 7843c60..28da7a1 100644
--- a/text_recognizer/networks/transformer/embeddings/fourier.py
+++ b/text_recognizer/networks/transformer/embeddings/fourier.py
@@ -1,8 +1,7 @@
"""Fourier positional embedding."""
import numpy as np
import torch
-from torch import nn
-from torch import Tensor
+from torch import Tensor, nn
class PositionalEncoding(nn.Module):