# tf.experimental.numpy.identity

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/numpy_ops/np_array_ops.py#L129-L132) |

TensorFlow variant of NumPy's `identity`.

    tf.experimental.numpy.identity(
        n, dtype=float
    )

Unsupported arguments: `like`.

See the NumPy documentation for [`numpy.identity`](https://numpy.org/doc/stable/reference/generated/numpy.identity.html).