mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
Merge pull request #4495 from andyjpaddle/fix_sar_cpu_train
fix sar train on cpu
This commit is contained in:
@@ -275,7 +275,6 @@ class ParallelSARDecoder(BaseDecoder):
|
||||
if img_metas is not None and self.mask:
|
||||
valid_ratios = img_metas[-1]
|
||||
|
||||
label = label.cuda()
|
||||
lab_embedding = self.embedding(label)
|
||||
# bsz * seq_len * emb_dim
|
||||
out_enc = out_enc.unsqueeze(1)
|
||||
|
||||
Reference in New Issue
Block a user