from local

This commit is contained in:
dohe0342 2023-01-25 16:43:37 +09:00
parent 8da1068fd8
commit 5d6991b536
2 changed files with 1 additions and 2 deletions

View File

@ -832,8 +832,7 @@ def compute_loss(
batch_idx_train = params.batch_idx_train
warm_step = params.warm_step
#texts = batch["supervisions"]["text"]
texts = batch["supervisions"]["greedy pseudo text"]
texts = batch["supervisions"]["text"]
token_ids = sp.encode(texts, out_type=int)
y = k2.RaggedTensor(token_ids).to(device)