What's the difference between get_lr and get_last_lr?

Hi all,
I’m new to lr_scheduler and I get different results from get_lr and get_last_lr. What’s the true learning rate? And why do they generate different results?

Thanks.

I think you should rely on calling get_last_lr, since using get_lr outside of the internal manipulation of the learning rate would yield a warning.

1 Like