Skip to content

Commit f897ca4

Browse files
committed
adapt to npu
1 parent 78ec762 commit f897ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppocr/modeling/heads/rec_latexocr_head.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def forward(
786786
x, mask=mask, mems=mems, return_hiddens=True, seq_len=seq_len, **kwargs
787787
)
788788
x = self.norm(x)
789-
mem, x = x[:, :num_mem], x[:, num_mem:]
789+
x = x[:, num_mem:]
790790
out = self.to_logits(x) if not return_embeddings else x
791791
if return_mems:
792792
hiddens = intermediates.hiddens

0 commit comments

Comments
 (0)