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:
parent
aea0204731
commit
cfa465a4b8
@ -118,9 +118,10 @@ def _serialize_slot_variables(trackable_objects, node_ids, object_names):
|
|||||||
"bothers you.")
|
"bothers you.")
|
||||||
if slot_variable in node_ids:
|
if slot_variable in node_ids:
|
||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
"A slot variable was re-used as a dependency of a "
|
("A slot variable was re-used as a dependency of a "
|
||||||
"Trackable object. This is not currently allowed. File a "
|
"Trackable object: %s. This is not currently "
|
||||||
"feature request if this limitation bothers you.")
|
"allowed. File a feature request if this limitation bothers "
|
||||||
|
"you.") % slot_variable)
|
||||||
checkpoint_name = naming_scheme(
|
checkpoint_name = naming_scheme(
|
||||||
variable_path=object_names[original_variable],
|
variable_path=object_names[original_variable],
|
||||||
slot_name=slot_name)
|
slot_name=slot_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user