We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4539775 commit 32b5b36Copy full SHA for 32b5b36
train.py
@@ -1264,7 +1264,7 @@ def _backward(_loss):
1264
update_time_m.update(time.time() - update_start_time)
1265
update_start_time = time_now
1266
1267
- if update_idx % args.log_interval == 0:
+ if update_idx % args.log_interval == 0 or last_batch:
1268
lrl = [param_group['lr'] for param_group in optimizer.param_groups]
1269
lr = sum(lrl) / len(lrl)
1270
0 commit comments