I’m dealing with an inference model problem in Tensorflow. I’ve loaded it from a SavedModel with a dictionary of custom object (a specific metric). I’ve made an inference model and give it a tensor of raw string, but I receive that error :
FailedPreconditionError: Exception encountered when calling layer "string_lookup" (type StringLookup).
Table not initialized. [Op:LookupTableFindV2]
So I’ve finally initialize tables with this deprecated method (tensorflow 2.7) :
tf.compat.v1.initialize_all_tables(name='init_all_tables')
As you imagine, it does’nt work.
So I have found those tickets on the subjet link1 link2 link3
My question is : Do I need to save my model with a specific command for a legacy init option, before loading it for inference modeling ?