from local

This commit is contained in:
dohe0342 2023-01-26 14:41:22 +09:00
parent d147c29015
commit 8b5a60b03c
2 changed files with 4 additions and 1 deletions

View File

@ -835,7 +835,10 @@ def compute_loss(
#texts = batch["supervisions"]["text"]
texts = []
for utt_id in
for utt_id in batch["id"]:
print(utt_id)
print(pl_texts[utt_id])
texts.append(pl_texts[utt_id])
token_ids = sp.encode(texts, out_type=int)
y = k2.RaggedTensor(token_ids).to(device)