UserWarning: To get the last learning rate computed by the scheduler, please use `get_last_lr()`.
warnings.warn("To get the last learning rate computed by the scheduler, "
base_lr = scheduler.base_lrs
# lr = scheduler.get_lr()
lr = scheduler.get_last_lr()
print("epoch: ", epoch, lr )
https://zhuanlan.zhihu.com/p/104472245