TensorFlow 2.0 Beta is available Learn more

tff.framework.unique_name_generator

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

tff.framework.unique_name_generator(
    comp,
    prefix='_var'
)

Defined in python/core/impl/computation_constructing_utils.py.

Args:

  • comp: The compuation 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.