Announcing the TensorFlow Dev Summit 2020 Learn more

tf.keras.mixed_precision.experimental.get_layer_policy

View source on GitHub

Returns the dtype policy of a layer.

tf.keras.mixed_precision.experimental.get_layer_policy(layer)

Args:

Returns:

The tf.keras.mixed_precision.experimental.Policy of the layer.

Compat aliases

  • tf.compat.v1.keras.mixed_precision.experimental.get_layer_policy
  • tf.compat.v2.keras.mixed_precision.experimental.get_layer_policy