TensorFlow 2.0 Beta is available Learn more

tff.framework.uniquify_reference_names

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

tff.framework.uniquify_reference_names(comp)

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

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.