# tf.keras.backend.dropout

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/backend/dropout) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/keras/backend.py#L4639-L4656) |

Sets entries in `x` to zero at random, while scaling the entire tensor.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.backend.dropout`](https://www.tensorflow.org/api_docs/python/tf/keras/backend/dropout)

<br />

    tf.keras.backend.dropout(
        x, level, noise_shape=None, seed=None
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `x` | tensor |
| `level` | fraction of the entries in the tensor that will be set to 0. |
| `noise_shape` | shape for randomly generated keep/drop flags, must be broadcastable to the shape of `x` |
| `seed` | random seed to ensure determinism. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor. ||

<br />