Skip to content

Commit f1ba57a

Browse files
authored
Fix lr -> learning_rate
1 parent 9ba0000 commit f1ba57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/distribute/keras.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
"# Define a callback for printing the learning rate at the end of each epoch.\n",
397397
"class PrintLR(tf.keras.callbacks.Callback):\n",
398398
" def on_epoch_end(self, epoch, logs=None):\n",
399-
" print('\\nLearning rate for epoch {} is {}'.format(epoch + 1, model.optimizer.lr.numpy()))"
399+
" print('\\nLearning rate for epoch {} is {}'.format(epoch + 1, model.optimizer.learning_rate.numpy()))"
400400
]
401401
},
402402
{

0 commit comments

Comments
 (0)