I'm currently doing exploration on deploying models on Google ML Engine. At first, I developed a model using TensorFlow 1.1.0 as it's the latest version exist (by the time this question is asked). However, it turned out that the highest supported version of TensorFlow on GCP is 1.0.1.
The problem is, previously when I was using TensorFlow 1.1.0, SavedModelBuilder
would correctly save the model as SavedModel
and its variables under variables/
directory. However, when I switch to TensorFlow 1.0.1, it didn't work similarly: The SavedModel
file was created, but no files was created under variables/
and hence no model can be built using only the SavedModel
file (missing files under variables/
).
Is it a known bug? Or should I do something in order to make the SavedModelBuilder
on TensorFlow 1.0.1 works as what TensorFlow 1.1.0 do?
Thank you.
EDIT, more detail:
Actually, there is no explicit tf.Variable
s exist in my model. However, there exist several tf.contrib.lookup.MutableDenseHashTable
s and they're exported correctly in TensorFlow 1.1.0, but not in TensorFlow 1.0.1 (as no variable was exported at all in 1.0.1).