Created
May 2, 2020 03:06
-
-
Save sayakpaul/b681fd2e4ce9011ab640a9d513dbbee1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opt = Adam(learning_rate=1e-4) | |
opt = tf.keras.mixed_precision.experimental.LossScaleOptimizer(opt, "dynamic") | |
model.compile(loss="categorical_crossentropy", | |
optimizer=opt, | |
metrics=["accuracy"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment