from local

This commit is contained in:
dohe0342 2023-01-20 13:56:53 +09:00
parent 401555216a
commit 03bd69cb9f
2 changed files with 2 additions and 1 deletions

View File

@ -685,7 +685,8 @@ def train_one_epoch(
params.batch_idx_train += 1
batch_size = len(batch["supervisions"]["text"])
#print(batch["supervisions"])
batch_name = batch["supervisions"]["id"]
#batch_name = batch["supervisions"]["id"]
batch_name = str(batch_idx)
with torch.cuda.amp.autocast(enabled=params.use_fp16):
loss, loss_info = compute_loss(