Merge remote-tracking branch 'origin/main'

This commit is contained in:
XL 2025-07-03 10:36:33 +08:00
commit e68abb236c

View File

@ -474,6 +474,10 @@ class T2SModel(nn.Module):
bert = bert.unsqueeze(0)
x = self.ar_text_embedding(all_phoneme_ids)
# avoid dtype inconsistency when exporting
bert = bert.to(dtype=self.bert_proj.weight.dtype)
x = x + self.bert_proj(bert.transpose(1, 2))
x: torch.Tensor = self.ar_text_position(x)