from local

This commit is contained in:
dohe0342 2023-01-25 17:15:53 +09:00
parent be33290b69
commit 0c9d222a86
2 changed files with 3 additions and 2 deletions

View File

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