title: Tensorflow Java API - sophisticated example
body: <p>I have already asked the question as a github issue, but was redirected to here. I have seen the <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java" rel="noreferrer">example</a> for importing model created and trained in Python imported into Java code and used for predictions.  However, I had some problems understanding what was actually going on especially in <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java#L92-L101" rel="noreferrer">this block</a> and the <strong>GraphBuilder</strong> class declaration between <strong>lines 156-207</strong>. Could someone please give some explanation for them?</p>
  
  <p>Moreover, I know the Java API is still under construction. However, I would be interested in if it is possible to see some more sophisticated examples, if it is possible including:</p>
  
  <ul>
  <li><p>importing model into Java and then performing training on the model</p></li>
  <li><p>implementing, training, evaluating, saving, loading a model from scratch in Java with Tensorflow</p></li>
  </ul>
  
  <p>Does anyone have such an example, and willing to share it?</p>
  
  <p>Thank you for any help!</p>
  
  <p>Cheers,</p>
  
  <p>Peter</p>