Format an AssertionError string with space between sentences.
PiperOrigin-RevId: 358008000 Change-Id: I5cd32c08db34f49793f035791dd0dda4777d25bd
This commit is contained in:
parent
0c2c49dda7
commit
6c2d64680d
@ -432,7 +432,7 @@ def _map_captures_to_created_tensors(original_captures, resource_map):
|
||||
if isinstance(secondary_referrer, base.Trackable):
|
||||
trackable_referrers.append(secondary_referrer)
|
||||
raise AssertionError(
|
||||
("Tried to export a function which references untracked resource {}."
|
||||
("Tried to export a function which references untracked resource {}. "
|
||||
"TensorFlow objects (e.g. tf.Variable) captured by functions must "
|
||||
"be tracked by assigning them to an attribute of a tracked object "
|
||||
"or assigned to an attribute of the main object directly.\n\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user