title: Tensorflow bazel quantization build error
body: <p>I am trying to build tensorflow tools package with bazel 0.18.0</p>
  
  <p>following steps are ok</p>
  
  <pre><code>git clone https://github.com/tensorflow/tensoflow
  bazel build --config=cuda //tensorflow/tools/pip_package:build_pip_package
  bazel build --config=cuda //tensorflow/examples/label_image:label_image
  </code></pre>
  
  <p>until trying to run this command line </p>
  
  <pre><code>bazel build --config=cuda //tensorflow/contrib/quantization:quantize_graph
  </code></pre>
  
  <p>it show error, so should i give something else then quantize_graph? and what i can use or find?</p>
  
  <p>root@24663fb1018d:/srv/wu/tensorflow-src/tensorflow# bazel build --config=cuda //tensorflow/contrib/quantization:quantize_graph
  WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrc
  WARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processedin the next release of Bazel. Please read <a href="https://github.com/bazelbuild/bazel/issues/6319" rel="nofollow noreferrer">https://github.com/bazelbuild/bazel/issues/6319</a> for further information, including how to upgrade.
  Starting local Bazel server and connecting to it...
  WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
  ERROR: Skipping '//tensorflow/contrib/quantization:quantize_graph': no such target '//tensorflow/contrib/quantization:quantize_graph': target 'quantize_graph' not declared in package 'tensorflow/contrib/quantization' defined by /srv/wu/tensorflow-src/tensorflow/tensorflow/contrib/quantization/BUILD
  WARNING: Target pattern parsing failed.
  ERROR: <strong>no such target '//tensorflow/contrib/quantization:quantize_graph': target 'quantize_graph' not declared in package 'tensorflow/contrib/quantization'</strong> defined by /srv/wu/tensorflow-src/tensorflow/tensorflow/contrib/quantization/BUILD
  INFO: Elapsed time: 1.195s
  INFO: 0 processes.
  FAILED: Build did NOT complete successfully (1 packages loaded)</p>
  
  <p>and then i tried with tools path, no luck</p>
  
  <pre><code>bazel build --config=cuda //tensorflow/tools/quantization:quantize_graph
  </code></pre>
  
  <p>WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrcWARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read <a href="https://github.com/bazelbuild/bazel/issues/6319" rel="nofollow noreferrer">https://github.com/bazelbuild/bazel/issues/6319</a> for further information, including how to upgrade.WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.ERROR: Skipping '//tensorflow/tools/quantization:quantize_graph': no such package'tensorflow/tools/quantization': BUILD file not found on package pathWARNING: Target pattern parsing failed.
  ERROR: no such package 'tensorflow/tools/quantization': BUILD file not found on package path
  INFO: Elapsed time: 0.506s
  INFO: 0 processes.
  FAILED: Build did NOT complete successfully (0 packages loaded)</p>
  
  <p>also the toco is not working</p>
  
  <pre><code>bazel build --config=cuda tensorflow/contrib/lite/toco:toco
  </code></pre>
  
  <p>WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrc
  WARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read <a href="https://github.com/bazelbuild/bazel/issues/6319" rel="nofollow noreferrer">https://github.com/bazelbuild/bazel/issues/6319</a> for further information, including how to upgrade.WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.ERROR: Skipping 'tensorflow/contrib/lite/toco:toco': no such package 'tensorflow/contrib/lite/toco': BUILD file not found on package path
  WARNING: Target pattern parsing failed.ERROR: no such package 'tensorflow/contrib/lite/toco': BUILD file not found on package pathINFO: Elapsed time: 0.500s
  INFO: 0 processes.FAILED: Build did NOT complete successfully (0 packages loaded)</p>