I have a trained a tensorflow seq2seq model for 30 epochs, and saved a checkpoint for each epoch. What I want to do now is combining the best X of those checkpoints (based on results on a development set). Specifically, I'm looking for a way that lets me average different model weights and merge them into a new model that can be used for decoding. However, there does not seem to be a set way for this, and loading different models can be a bit tricky. But even if this succeeds, I can't find a good answer on how to combine the weights in a new model.
Any help would be greatly appreciated.
Related questions (that do not sufficiently answer in my opinion):
Building multiple models in the same graph
How to load several identical models from save files into one session in Tensorflow