title: How to create a SavedModel from a TensorFlow checkpoint or model?
body: <p>I was given a TensorFlow checkpoint and also an exported model, but to serve a model using Google ML Cloud, I need a <code>saved_model.pbtxt</code> file. It seems that I need to load the checkpoint and use <code>SavedModelBuilder</code> but <code>SavedModelBuilder</code> wants a dictionary of the names of the input and output nodes.</p>
  
  <p>My question is, given the checkpoint or the exported model (below), how can I find the names of the nodes needed to generate the <code>pbtxt</code> file I need to serve the model via Google's ML Cloud service?</p>
  
  <pre><code>checkpoint
  export.data-00000-of-00001
  export.index
  export.meta
  options.json
  </code></pre>