We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba0000 commit f1ba57aCopy full SHA for f1ba57a
site/en/tutorials/distribute/keras.ipynb
@@ -396,7 +396,7 @@
396
"# Define a callback for printing the learning rate at the end of each epoch.\n",
397
"class PrintLR(tf.keras.callbacks.Callback):\n",
398
" def on_epoch_end(self, epoch, logs=None):\n",
399
- " print('\\nLearning rate for epoch {} is {}'.format(epoch + 1, model.optimizer.lr.numpy()))"
+ " print('\\nLearning rate for epoch {} is {}'.format(epoch + 1, model.optimizer.learning_rate.numpy()))"
400
]
401
},
402
{
0 commit comments