From d020059f2f71fe7c25765dde9d535195c09ece01 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 3 Sep 2023 01:14:16 +0200 Subject: Update imports --- text_recognizer/network/transformer/embedding/absolute.py | 3 ++- text_recognizer/network/transformer/embedding/token.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'text_recognizer/network/transformer/embedding') diff --git a/text_recognizer/network/transformer/embedding/absolute.py b/text_recognizer/network/transformer/embedding/absolute.py index 08b2c2a..db34157 100644 --- a/text_recognizer/network/transformer/embedding/absolute.py +++ b/text_recognizer/network/transformer/embedding/absolute.py @@ -2,7 +2,8 @@ from typing import Optional import torch from torch import nn, Tensor -from text_recognizer.network.transformer.embedding.l2_norm import l2_norm + +from .l2_norm import l2_norm class AbsolutePositionalEmbedding(nn.Module): diff --git a/text_recognizer/network/transformer/embedding/token.py b/text_recognizer/network/transformer/embedding/token.py index 1df2fd6..838f514 100644 --- a/text_recognizer/network/transformer/embedding/token.py +++ b/text_recognizer/network/transformer/embedding/token.py @@ -1,6 +1,6 @@ from torch import nn, Tensor -from text_recognizer.network.transformer.embedding.l2_norm import l2_norm +from .l2_norm import l2_norm class TokenEmbedding(nn.Module): -- cgit v1.2.3-70-g09d2