Skip to content

Instantly share code, notes, and snippets.

@Sanlap1997
Created September 24, 2020 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sanlap1997/7fb11c457b13ee3a0a236cb7e76997e6 to your computer and use it in GitHub Desktop.
Save Sanlap1997/7fb11c457b13ee3a0a236cb7e76997e6 to your computer and use it in GitHub Desktop.
class LrHistory(tf.keras.callbacks.Callback):
def on_epoch_begin(self, epoch, logs={}):
print("Learning rate:", tf.keras.backend.get_value(model.optimizer.lr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment