fix intent bug with initial learning rate != 0.001

This commit is contained in:
blessyyyu 2022-04-14 15:49:41 +08:00
parent 98768c7976
commit 2be4405b38

View File

@ -158,7 +158,7 @@ def main():
start_epoch = infos.get('epoch', -1) + 1
cv_loss = infos.get('cv_loss', 0.0)
# get the last epoch lr
lr_last_epoch = infos.get('lr', 0.001)
lr_last_epoch = infos.get('lr', configs['optim_conf']['lr'])
configs['optim_conf']['lr'] = lr_last_epoch
model_dir = args.model_dir
writer = None