# tff.framework.unique_name_generator

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Yields a new unique name that does not exist in `comp`.

    tff.framework.unique_name_generator(
        comp: https://www.tensorflow.org/federated/api_docs/python/tff/framework/ComputationBuildingBlock,
        prefix: str = '_var'
    ) -> Iterator[str]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `comp` | The computation building block to use as a reference. |
| `prefix` | The prefix to use when generating unique names. If `prefix` is `None` or if `comp` contains any name with this prefix, then a unique prefix will be generated from random lowercase ascii characters. |

<br />