I just finished training my model only to find out that I exported a model for serving that had problems with the signatures. How do I update them?
(One common problem is setting the wrong shape for CloudML Engine).
I just finished training my model only to find out that I exported a model for serving that had problems with the signatures. How do I update them?
(One common problem is setting the wrong shape for CloudML Engine).
Don't worry -- you don't need to retrain your model. That said, there is a little work to be done. You're going to create a new (corrected) serving graph, load the checkpoints into that graph, and then export this graph.
For example, suppose you add a placeholder, but didn't set the shape, even though you meant to (e.g., to run on CloudML). In that case, your graph may have looked like:
To correct this: