from local

This commit is contained in:
dohe0342 2022-12-26 15:15:50 +09:00
parent 7114f16a85
commit f961e91489
2 changed files with 1 additions and 0 deletions

View File

@ -1022,6 +1022,7 @@ def train_one_epoch(
# in the batch and there is no normalization to it so far.
loggin.info('1')
scaler.scale(loss).backward()
loggin.info('2')
if params.multi_optim and (batch_idx+1) % params.accum_grads == 0:
set_batch_count(model, params.batch_idx_train)