summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/transformer/embeddings/rotary.py
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks/transformer/embeddings/rotary.py')
-rw-r--r--text_recognizer/networks/transformer/embeddings/rotary.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/text_recognizer/networks/transformer/embeddings/rotary.py b/text_recognizer/networks/transformer/embeddings/rotary.py
index 722478e..cc91206 100644
--- a/text_recognizer/networks/transformer/embeddings/rotary.py
+++ b/text_recognizer/networks/transformer/embeddings/rotary.py
@@ -7,8 +7,7 @@ Explanation of roatary:
https://blog.eleuther.ai/rotary-embeddings/
"""
import torch
-from torch import nn
-from torch import Tensor
+from torch import Tensor, nn
class RotaryEmbedding(nn.Module):