mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
d147c29015
commit
8b5a60b03c
Binary file not shown.
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user