diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-08 17:18:07 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-08 17:27:56 -0700 |
commit | 63cd1e5999d36f91dd938af4a4c2864640c76caa (patch) | |
tree | 87f6ad4e81d51577dbbc9a825d2592aae66ef693 /tensorflow/contrib/lite/toco | |
parent | 963ef37203c76e0338ede21b469020e425fb9208 (diff) |
Enable quantization support for ExpandDims
PiperOrigin-RevId: 207972564
Diffstat (limited to 'tensorflow/contrib/lite/toco')
-rw-r--r-- | tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc | 1 | ||||
-rw-r--r-- | tensorflow/contrib/lite/toco/graph_transformations/quantize.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc b/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc index 527013bfa3..d26c3b2878 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc +++ b/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc @@ -371,6 +371,7 @@ bool HardcodeMinMax::Run(Model* model, std::size_t op_index) { case OperatorType::kStridedSlice: case OperatorType::kSqueeze: case OperatorType::kReshape: + case OperatorType::kExpandDims: case OperatorType::kPad: case OperatorType::kGather: case OperatorType::kTranspose: diff --git a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc b/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc index b5a6554c1d..8d22ae2eb1 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc +++ b/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc @@ -62,7 +62,7 @@ bool SupportsQuantization(const Operator& op) { type == OperatorType::kLessEqual || type == OperatorType::kSelect || type == OperatorType::kArgMax || type == OperatorType::kRelu || type == OperatorType::kRelu1 || type == OperatorType::kRelu6 || - type == OperatorType::kShape; + type == OperatorType::kShape || type == OperatorType::kExpandDims; } // The quantized op allows output arrays of type float using |