
很多时候我们要对学习率(learning rate)进行衰减,下面的代码示范了如何每30个epoch按10%的速率衰减:
1 |
def (optimizer, epoch): |
来源:https://www.pytorchtutorial.com/pytorch-learning-rate-decay/

很多时候我们要对学习率(learning rate)进行衰减,下面的代码示范了如何每30个epoch按10%的速率衰减:
1 |
def (optimizer, epoch): |
来源:https://www.pytorchtutorial.com/pytorch-learning-rate-decay/
近期评论