【发布时间】:2021-03-28 07:13:51
【问题描述】:
在论文Attention is all you need 的第 5.3 节中,作者建议线性增加学习率,然后与步长的平方根成反比。
我们如何在 PyTorch 中使用 Adam 优化器实现这一点?最好不要额外的包。
【问题讨论】:
-
只需要使用 Adadelta。根据我的经验,到目前为止,它的最终性能比 Adam 更好
标签: python machine-learning pytorch