From e5e776cb7ce3486d1a9e16f6ae328f55fd20f02b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Nov 2021 19:25:59 +0100 Subject: Rename mask to input_mask Rename mask to input_mask Rename mask to input_mask --- text_recognizer/networks/conv_transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text_recognizer/networks/conv_transformer.py') diff --git a/text_recognizer/networks/conv_transformer.py b/text_recognizer/networks/conv_transformer.py index 0c838d8..59ce814 100644 --- a/text_recognizer/networks/conv_transformer.py +++ b/text_recognizer/networks/conv_transformer.py @@ -118,7 +118,7 @@ class ConvTransformer(nn.Module): if self.token_pos_embedding is not None else trg ) - out = self.decoder(x=trg, context=src, mask=trg_mask) + out = self.decoder(x=trg, context=src, input_mask=trg_mask) logits = self.head(out) # [B, Sy, T] logits = logits.permute(0, 2, 1) # [B, T, Sy] return logits -- cgit v1.2.3-70-g09d2