Module: tf.keras.mixed_precision

DO NOT EDIT.

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

Classes

class DTypePolicy: A dtype policy for a Keras layer.

class LossScaleOptimizer: An optimizer that dynamically scales the loss to prevent underflow.

class Policy: A dtype policy for a Keras layer.

Functions

dtype_policy(...): Returns the current default dtype policy object.

global_policy(...): Returns the current default dtype policy object.

set_dtype_policy(...): Sets the default dtype policy globally.

set_global_policy(...): Sets the default dtype policy globally.