Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tff.framework.unique_name_generator

View source

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

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

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.