Skip to content

Commit 32b5b36

Browse files
TonyTony
authored andcommitted
added to logging logic during training to be consistent with validation
1 parent 4539775 commit 32b5b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ def _backward(_loss):
12641264
update_time_m.update(time.time() - update_start_time)
12651265
update_start_time = time_now
12661266

1267-
if update_idx % args.log_interval == 0:
1267+
if update_idx % args.log_interval == 0 or last_batch:
12681268
lrl = [param_group['lr'] for param_group in optimizer.param_groups]
12691269
lr = sum(lrl) / len(lrl)
12701270

0 commit comments

Comments
 (0)