Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tff.framework.unique_name_generator

View source on GitHub

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.