# tf.keras.backend.truncated_normal

<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/truncated_normal) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/keras/backend.py#L5715-L5739) |

Returns a tensor with truncated random normal distribution of values.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.keras.backend.truncated_normal(
        shape, mean=0.0, stddev=1.0, dtype=None, seed=None
    )

The generated values follow a normal distribution
with specified mean and standard deviation,
except that values whose magnitude is more than
two standard deviations from the mean are dropped and re-picked.

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `shape` | A tuple of integers, the shape of tensor to create. |
| `mean` | Mean of the values. |
| `stddev` | Standard deviation of the values. |
| `dtype` | String, dtype of returned tensor. |
| `seed` | Integer, random seed. |

<br />

<br />

<br />

<br />

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

<br />