Missed TensorFlow World? Check out the recap. Learn more

tff.framework.uniquify_reference_names

View source on GitHub

Replaces all the bound reference names in comp with unique names.

tff.framework.uniquify_reference_names(comp)

Notice that uniquify_reference_names simply leaves alone any reference which is unbound under comp.

Args:

  • comp: The computation building block in which to perform the replacements.

Returns:

Returns a transformed version of comp inside of which all variable names are guaranteed to be unique.