aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco
diff options
context:
space:
mode:
authorGravatar Ben Lee <blee@google.com>2018-08-30 17:25:53 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-30 17:35:02 -0700
commit0278712da34922ec9fd5e2a4484b3b3243f7784c (patch)
tree51b07f9a12084778306e8ab222e50ca5ed2797c3 /tensorflow/contrib/lite/toco
parent4a1570d4a172ebd10778c0b65c3f1926ba1329b6 (diff)
Enable quantization support for TopK
PiperOrigin-RevId: 211011100
Diffstat (limited to 'tensorflow/contrib/lite/toco')
-rw-r--r--tensorflow/contrib/lite/toco/graph_transformations/quantize.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc b/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc
index ab8d1dd94d..1bc366f555 100644
--- a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc
+++ b/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc
@@ -63,7 +63,7 @@ bool SupportsQuantization(const Operator& op) {
type == OperatorType::kArgMax || type == OperatorType::kRelu ||
type == OperatorType::kRelu1 || type == OperatorType::kRelu6 ||
type == OperatorType::kShape || type == OperatorType::kExpandDims ||
- type == OperatorType::kPack;
+ type == OperatorType::kPack || type == OperatorType::kTopK_V2;
}
// The quantized op allows output arrays of type float using