title: Tensorflow: Save and restore the output of a tensor
body: <p>I would like to achieve something like this using tensorflow.</p>
  
  <p><a href="https://i.stack.imgur.com/XOf4U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XOf4U.png" alt="enter image description here"></a></p>
  
  <p>I can only find documentation on saving and restoring variables (weights). However, like #2-2, I want to utilize the output of a hidden layer (tensor) as input of another model. Can this be done?</p>