# Module: tf.keras.mixed_precision

<br />

DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.

## Classes

[`class DTypePolicy`](https://www.tensorflow.org/api_docs/python/tf/keras/DTypePolicy): A dtype policy for a Keras layer.

[`class LossScaleOptimizer`](https://www.tensorflow.org/api_docs/python/tf/keras/mixed_precision/LossScaleOptimizer): An optimizer that dynamically scales the loss to prevent underflow.

[`class Policy`](https://www.tensorflow.org/api_docs/python/tf/keras/DTypePolicy): A dtype policy for a Keras layer.

## Functions

[`dtype_policy(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/config/dtype_policy): Returns the current default dtype policy object.

[`global_policy(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/config/dtype_policy): Returns the current default dtype policy object.

[`set_dtype_policy(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/config/set_dtype_policy): Sets the default dtype policy globally.

[`set_global_policy(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/config/set_dtype_policy): Sets the default dtype policy globally.