Skip to content

Commit

Permalink
Fix lr -> learning_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Sep 11, 2024
1 parent 9ba0000 commit f1ba57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/en/tutorials/distribute/keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"# Define a callback for printing the learning rate at the end of each epoch.\n",
"class PrintLR(tf.keras.callbacks.Callback):\n",
" def on_epoch_end(self, epoch, logs=None):\n",
" 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()))"
]
},
{
Expand Down

0 comments on commit f1ba57a

Please sign in to comment.