diff options
author | Yunlu Li <yunluli@google.com> | 2018-08-30 17:19:43 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-30 17:24:24 -0700 |
commit | 9efc469cc5fa7eb0f8d8d8a7662cb6c1fbcb5b1a (patch) | |
tree | c01018a17eeb3c9397f4606c445e666af2d080e4 /tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md | |
parent | 11f970c61bc21ae81b76cdee58871f0509ec9f0f (diff) |
Change the data type of mean_values and std_dev_values to float.
PiperOrigin-RevId: 211010293
Diffstat (limited to 'tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md')
-rw-r--r-- | tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md b/tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md index decc8a45a4..76862970c8 100644 --- a/tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md +++ b/tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md @@ -67,21 +67,22 @@ based on index. * `--input_shapes`. Type: colon-separated list of comma-separated lists of integers. Each comma-separated list of integers gives the shape of one of - the input arrays specified in [TensorFlow - convention](https://www.tensorflow.org/versions/r1.2/programmers_guide/dims_types#shape). + the input arrays specified in + [TensorFlow convention](https://www.tensorflow.org/versions/r1.2/programmers_guide/dims_types#shape). * Example: `--input_shapes=1,60,80,3` for a typical vision model means a batch size of 1, an input image height of 60, an input image width of 80, and an input image depth of 3 (representing RGB channels). * Example: `--input_arrays=foo,bar --input_shapes=2,3:4,5,6` means "foo" has a shape of [2, 3] and "bar" has a shape of [4, 5, 6]. -* `--std_dev_values`, `--mean_values`. Type: comma-separated list of integers. +* `--std_dev_values`, `--mean_values`. Type: comma-separated list of floats. These specify the (de-)quantization parameters of the input array, when it - is quantized. + is quantized. This is only needed if `inference_input_type` is + `QUANTIZED_UINT8`. * The meaning of `mean_values` and `std_dev_values` is as follows: each quantized value in the quantized input array will be interpreted as a mathematical real number (i.e. as an input activation value) according to the following formula: - * `real_value = (quantized_input_value - mean_value) / std_value`. + * `real_value = (quantized_input_value - mean_value) / std_dev_value`. * When performing float inference (`--inference_type=FLOAT`) on a quantized input, the quantized input would be immediately dequantized by the inference code according to the above formula, before proceeding @@ -91,7 +92,8 @@ based on index. the inference code. However, the quantization parameters of all arrays, including those of the input arrays as specified by `mean_value` and `std_dev_value`, determine the fixed-point multipliers used in the - quantized inference code. + quantized inference code. `mean_value` must be an integer when + performing quantized inference. ## Transformation flags |