<h3 dir="auto">Description:</h3>
<p dir="auto">There are two examples for "tflite image classification on android" on the Tensorflow repo which achieve the same thing. They both have almost identical code but slight differences(In UI and in code).</p>
<p dir="auto"><strong>Example A:</strong> <a href="https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android">https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android</a><br>
<strong>Example B:</strong> <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java</a></p>
<p dir="auto">I would like to know which one is supposed to be used, and whether they can be merged so that this confusion is avoided?</p>
<h3 dir="auto">Example of a difference:</h3>
<ul dir="auto">
<li>In example A we do <strong>not</strong> create a NNAPI Delegate</li>
</ul>
<p dir="auto"><a href="https://github.com/tensorflow/examples/blob/156a12782a06f085adeb6b352c2763648cece066/lite/examples/image_classification/android/app/src/main/java/org/tensorflow/lite/examples/classification/tflite/Classifier.java#L179">https://github.com/tensorflow/examples/blob/156a12782a06f085adeb6b352c2763648cece066/lite/examples/image_classification/android/app/src/main/java/org/tensorflow/lite/examples/classification/tflite/Classifier.java#L179</a></p>
<ul dir="auto">
<li>But in example B we do create an NNAPI Delegate</li>
</ul>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/tensorflow/tensorflow/blob/e8ad5b0552a03e5d065a8f302dd0c0e0ae6b3925/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java#L186">tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 186
      in
      <a data-pjax="true" class="commit-tease-sha" href="/tensorflow/tensorflow/commit/e8ad5b0552a03e5d065a8f302dd0c0e0ae6b3925">e8ad5b0</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L186" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="186"></td>
          <td id="LC186" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">nnapiDelegate</span> = <span class="pl-k">new</span> <span class="pl-smi">NnApiDelegate</span>(); </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">zero_debias for moving average was introduced recently on master branches.  (tensorflow/tensorflow/python/training/moving_averages.py)<br>
Variables in func “_zero_debias” is created by "variable_scope.get_variable", while slot_creator creates moving variable with "variables.Variable". This causes some problem when outer scope set “reuse=True”, if we only want to reuse variables of the network but not the moving averages.<br>
At least, the new feature introduces inconsistency on how to maintain moving variables.</p>