Merge pull request #4495 from andyjpaddle/fix_sar_cpu_train

fix sar train on cpu
pull/4514/head
xiaoting 2021-10-29 22:18:11 +08:00 committed by GitHub
commit 13757fe1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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)