mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made the steps without progress counter reset immediately upon changing the
learning rate.
This commit is contained in:
parent
72a2e8e437
commit
3c002d1cff
@ -381,7 +381,10 @@ namespace dlib
|
||||
DLIB_CASSERT(lr > 0,"");
|
||||
wait_for_thread_to_pause();
|
||||
if (learning_rate != lr)
|
||||
{
|
||||
steps_without_progress = 0;
|
||||
previous_loss_values.clear();
|
||||
}
|
||||
learning_rate = lr;
|
||||
lr_schedule.set_size(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user