aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/tooling_util.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-07-30 14:44:41 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-30 14:49:54 -0700
commitcb07a15c1d85a0bf1b33e0e7a85c8401e3f65c5c (patch)
tree795221f744f4c79b9ab5766c27c75fc31534a5d0 /tensorflow/contrib/lite/toco/tooling_util.cc
parente133ab6bd47127d91c654ccb748dc0c6d8c83135 (diff)
More explicit TOCO error message when the input graph is missing min/max needed
for quantization. PiperOrigin-RevId: 206650116
Diffstat (limited to 'tensorflow/contrib/lite/toco/tooling_util.cc')
-rw-r--r--tensorflow/contrib/lite/toco/tooling_util.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/tensorflow/contrib/lite/toco/tooling_util.cc b/tensorflow/contrib/lite/toco/tooling_util.cc
index 7f5da251d0..68155c7329 100644
--- a/tensorflow/contrib/lite/toco/tooling_util.cc
+++ b/tensorflow/contrib/lite/toco/tooling_util.cc
@@ -1619,11 +1619,12 @@ void CheckIsReadyForQuantization(const Model& model) {
<< "Array " << input << ", which is an input to the "
<< HelpfulOperatorTypeName(*op) << " operator producing the output "
<< "array " << op->outputs[0] << ", is lacking min/max data, "
- << "which is necessary for quantization. Either target a "
- << "non-quantized output format, or change the input graph to "
- << "contain min/max information, or pass --default_ranges_min= and "
- << "--default_ranges_max= if you do not care about the accuracy of "
- << "results.";
+ << "which is necessary for quantization. If accuracy matters, either "
+ << "target a non-quantized output format, or run quantized training "
+ << "with your model from a floating point checkpoint to change the "
+ << "input graph to contain min/max information. If you don't care "
+ << "about accuracy, you can pass --default_ranges_min= and "
+ << "--default_ranges_max= for easy experimentation.";
}
}
}