Skip to content

Instantly share code, notes, and snippets.

@RaphaelMeudec
Created January 16, 2020 16:07
Show Gist options
  • Save RaphaelMeudec/7c235a56eef5ff74f86498d1664f28f5 to your computer and use it in GitHub Desktop.
Save RaphaelMeudec/7c235a56eef5ff74f86498d1664f28f5 to your computer and use it in GitHub Desktop.
Lines to turn float32 into mixed precision training
policy = tf.keras.mixed_precision.experimental.Policy('mixed_float16')
tf.keras.mixed_precision.experimental.set_policy(policy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment