TrickyGo / Dive-into-DL-TensorFlow2.0

本项目将《动手学深度学习》(Dive into Deep Learning)原书中的MXNet实现改为TensorFlow 2.0实现,项目已得到李沐老师的认可
https://trickygo.github.io/Dive-into-DL-TensorFlow2.0/#/
Apache License 2.0
3.79k stars 820 forks source link

Update 3.12_weight-decay.ipynb #89

Closed kpol-lgx closed 1 year ago

kpol-lgx commented 1 year ago

在 tensorflow 2.11.0 中,lr 已经被抛弃了,应该使用 learning_rate 运行代码给出警告如下: WARNING:absl:lr is deprecated, please use learning_rate instead, or use the legacy optimizer, e.g.,tf.keras.optimizers.legacy.SGD.

archersama commented 1 year ago

这个版本当初是使用tensorflow2.0,故不修改