description: Returns the dtype policy of a layer.

tf.keras.mixed_precision.experimental.get_layer_policy

Returns the dtype policy of a layer.

Warning: This function is deprecated. Use tf.keras.layers.Layer.dtype_policy instead.

layer A tf.keras.layers.Layer.

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