-->

Tensorflow build quantization tool - bazel build e

2019-05-07 04:26发布

问题:

I am trying to compile the quantization script as described in Pete Warden's blog. However I get the following error message after running the following bazel build:

bazel build tensorflow/contrib/quantization/tools:quantize_graph
ERROR: no such package 'tensorflow/contrib/quantization/tools': BUILD       file not found on package path.
INFO: Elapsed time: 0.277s

回答1:

I think what happened is that this quantization tool got moved out of contrib and into TensorFlow core. You should be able to use that instead:

bazel build tensorflow/tools/quantization:quantize_graph