<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Mac OS X 10.11.4<br>
CUDA: No<br>
TF installed from source<br>
<code class="notranslate">git rev-parse HEAD</code>: <code class="notranslate">6d04d601e9e8758ec4642fa9d548b7321d804d63</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel version
Build label: 0.2.3-homebrew
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 17 15:07:52 2016 (1463497672)
Build timestamp: 1463497672
Build timestamp as int: 1463497672"><pre class="notranslate"><code class="notranslate">bazel version
Build label: 0.2.3-homebrew
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 17 15:07:52 2016 (1463497672)
Build timestamp: 1463497672
Build timestamp as int: 1463497672
</code></pre></div>
<h3 dir="auto">Problem</h3>
<p dir="auto">I want to run inference on mobile and thought quantization would be a good idea. I also want to use the <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/benchmark">benchmark program</a> to see speed and memory consumption of different models before starting to train them.</p>
<p dir="auto">However the benchmark seems to be missing the quantization ops needed (it doesn't matter which quantization mode I use):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E tensorflow/tools/benchmark/benchmark_model.cc:72] Could not create TensorFlow Session: Not found: Op type not registered 'QuantizeV2'"><pre class="notranslate"><code class="notranslate">E tensorflow/tools/benchmark/benchmark_model.cc:72] Could not create TensorFlow Session: Not found: Op type not registered 'QuantizeV2'
</code></pre></div>
<p dir="auto">I realize that I should modify this <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/benchmark/BUILD">BUILD</a> file somehow to include the missing ops but I can't figure out Bazel's name of the built library or how to link it statically into the benchmark program. Or are the ops missing for a reason (incompatible with the normals ops etc)?</p>
<p dir="auto">I know that this is more of a question than a bug report, but I don't think I'm the only one with problem so perhaps you can treat is as a documentation bug?</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
Building on Mac OS X<br>
Running on iOS 9.2.1</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/27eeb441bad8bcaa1bcba42a4b4ee49fb50ea0d3/hovercard" href="https://github.com/tensorflow/tensorflow/commit/27eeb441bad8bcaa1bcba42a4b4ee49fb50ea0d3"><tt>27eeb44</tt></a></li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jul 12 11:11:47 2016 (1468321907)
Build timestamp: 1468321907
Build timestamp as int: 1468321907"><pre class="notranslate"><code class="notranslate">Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jul 12 11:11:47 2016 (1468321907)
Build timestamp: 1468321907
Build timestamp as int: 1468321907
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>I compile tf for iOS with the makefile</li>
<li>I follow <a href="https://www.tensorflow.org/versions/master/how_tos/quantization/index.html" rel="nofollow">https://www.tensorflow.org/versions/master/how_tos/quantization/index.html</a> to quantize a model which run perfectly in iOS</li>
<li>Replace the frozen model file with the quantized one, iOS throw the Error</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="F /Users/yjmade/Documents/code/labs/tensorflow/tf_master1/tensorflow/contrib/ios_examples/camera_object_detect/CameraExampleViewController.mm:436] Couldn't load model: Not found: Op type not registered 'Dequantize'"><pre class="notranslate"><code class="notranslate">F /Users/yjmade/Documents/code/labs/tensorflow/tf_master1/tensorflow/contrib/ios_examples/camera_object_detect/CameraExampleViewController.mm:436] Couldn't load model: Not found: Op type not registered 'Dequantize'
</code></pre></div>
<p dir="auto">I think it maybe is the same problem with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168012445" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/3543" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/3543/hovercard" href="https://github.com/tensorflow/tensorflow/issues/3543">#3543</a></p>