Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.keras.mixed_precision.experimental.global_policy

TensorFlow 2.0 version View source on GitHub

Returns the global Policy.

Aliases:

  • tf.compat.v1.keras.mixed_precision.experimental.global_policy
  • tf.compat.v2.keras.mixed_precision.experimental.global_policy
tf.keras.mixed_precision.experimental.global_policy()

The global policy is the default policy used for layers, if no policy is passed to the layer constructor. When TensorFlow starts, the global policy is set to an "infer" policy, and can be changed with set_policy.

Returns:

The global Policy.