<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.15.0/keras/backend.py#L192-L215) |

Associates a string prefix with an integer counter in a TensorFlow graph.

    tf.keras.backend.get_uid(
        prefix=''
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `prefix` | String prefix to index. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Unique integer ID. ||

<br />

#### Example:

    get_uid('dense')
    1
    get_uid('dense')
    2