Restored SavedModel + saved_model_cli raise exception when the object is deleted #44774
Labels
comp:apis
Highlevel API related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.3
Issues related to TF 2.3
type:bug
Bug
Projects
System information
Current and expected behavior
I'm exporting using a
tf.Module
two graphs created by decorating two method with@tf.function
. I expect the SavedModel to be correctly exported and to not have a crash. Insteadsaved_model_cli show --all --dir at
I got an exception (see below)tf.saved_model.load("at")
) the model and I delete it (the exception is when the object goes out of scope, and not when the load method is invoked).Standalone code to reproduce the issue
Exception and SavedModel (that I guess is wrong)
The text was updated successfully, but these errors were encountered: