Rollback of:

Revise re-used slot variable dependency error message to be more informative as to the offending variable.

PiperOrigin-RevId: 354526986
Change-Id: Ic2240576beeee380569b531a03437d702b350bcc
This commit is contained in:
David Kao 2021-01-29 07:15:58 -08:00 committed by TensorFlower Gardener
parent aea0204731
commit cfa465a4b8

View File

@ -118,9 +118,10 @@ def _serialize_slot_variables(trackable_objects, node_ids, object_names):
"bothers you.")
if slot_variable in node_ids:
raise NotImplementedError(
"A slot variable was re-used as a dependency of a "
"Trackable object. This is not currently allowed. File a "
"feature request if this limitation bothers you.")
("A slot variable was re-used as a dependency of a "
"Trackable object: %s. This is not currently "
"allowed. File a feature request if this limitation bothers "
"you.") % slot_variable)
checkpoint_name = naming_scheme(
variable_path=object_names[original_variable],
slot_name=slot_name)