diff options
Diffstat (limited to 'text_recognizer/network/transformer')
3 files changed, 3 insertions, 3 deletions
diff --git a/text_recognizer/network/transformer/embedding/l2_norm.py b/text_recognizer/network/transformer/embedding/l2_norm.py index 0e48bca..f5ec4ba 100644 --- a/text_recognizer/network/transformer/embedding/l2_norm.py +++ b/text_recognizer/network/transformer/embedding/l2_norm.py @@ -1,5 +1,5 @@ -from einops import rearrange import torch.nn.functional as F +from einops import rearrange from torch import Tensor diff --git a/text_recognizer/network/transformer/embedding/rotary.py b/text_recognizer/network/transformer/embedding/rotary.py index 2254f81..7e88264 100644 --- a/text_recognizer/network/transformer/embedding/rotary.py +++ b/text_recognizer/network/transformer/embedding/rotary.py @@ -1,6 +1,6 @@ import torch -from torch import nn, einsum from einops import rearrange +from torch import einsum, nn class RotaryEmbedding(nn.Module): diff --git a/text_recognizer/network/transformer/embedding/token.py b/text_recognizer/network/transformer/embedding/token.py index 838f514..bf5149e 100644 --- a/text_recognizer/network/transformer/embedding/token.py +++ b/text_recognizer/network/transformer/embedding/token.py @@ -1,4 +1,4 @@ -from torch import nn, Tensor +from torch import Tensor, nn from .l2_norm import l2_norm |