from local

This commit is contained in:
dohe0342 2023-01-25 17:22:09 +09:00
parent 5f689ccdd2
commit fbb80af5ec
2 changed files with 1 additions and 0 deletions

View File

@ -1026,6 +1026,7 @@ def train_one_epoch(
if batch_idx % params.accum_grads == 0: params.batch_idx_train += 1
batch_size = len(batch["supervisions"]["text"])
print(batch_size)
try:
with torch.cuda.amp.autocast(enabled=params.use_fp16):