tf.keras.config.set_dtype_policy

Sets the default dtype policy globally.

Main aliases

tf.keras.mixed_precision.set_dtype_policy, tf.keras.mixed_precision.set_global_policy

Used in the notebooks

Example:

keras.config.set_dtype_policy("mixed_float16")