title: How to keep lookup tables initialized for prediction (and not just training)?
body: <p>I create a lookup table from <a href="https://www.tensorflow.org/api_docs/python/tf/contrib/lookup" rel="noreferrer"><code>tf.contrib.lookup</code></a>, using the training data (as input). Then, I pass every input through that lookup table, before passing it through my model.</p>
  
  <p>This works for training, but when it comes to online prediction from this same model, it raises the error:</p>
  
  <blockquote>
    <p>Table not initialized</p>
  </blockquote>
  
  <p>I'm using <code>SavedModel</code> to save the model. I run the prediction from this saved model.</p>
  
  <p>How can I initialize this table so that it stays initialized? Or is there a better way to save the model so that the table is always initialized?</p>