W3cubDocs

/TensorFlow

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.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/mixed_precision