summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/convnext/attention.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-18 18:11:21 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-18 18:11:53 +0200
commit2cc6aa059139b57057609817913ad515063c2eab (patch)
tree5433f69a5eaf63e064a100bf900783127c7b1ff4 /text_recognizer/networks/convnext/attention.py
parent88caa5c466225d4752541c352c5777235f8f0c61 (diff)
Format imports
Format imports
Diffstat (limited to 'text_recognizer/networks/convnext/attention.py')
-rw-r--r--text_recognizer/networks/convnext/attention.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/text_recognizer/networks/convnext/attention.py b/text_recognizer/networks/convnext/attention.py
index 7f03436..a373c37 100644
--- a/text_recognizer/networks/convnext/attention.py
+++ b/text_recognizer/networks/convnext/attention.py
@@ -1,8 +1,8 @@
"""Convolution self attention block."""
-from einops import reduce, rearrange
-from torch import einsum, nn, Tensor
import torch.nn.functional as F
+from einops import rearrange, reduce
+from torch import Tensor, einsum, nn
from text_recognizer.networks.convnext.norm import LayerNorm
from text_recognizer.networks.convnext.residual import Residual