aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/model.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-06-17 06:51:58 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-17 06:55:33 -0700
commit8f255771c0ead16149fb003a9da45ff7346159d3 (patch)
tree4e9ba5c66474e7994622b5116257ea5b3aeef42d /tensorflow/contrib/lite/toco/model.h
parent5cb77a7ac4741df72e1739c4fda3f552afc9c47c (diff)
Implement reduce_sum
PiperOrigin-RevId: 200895985
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r--tensorflow/contrib/lite/toco/model.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h
index 7bdec47aa9..619fc9fd42 100644
--- a/tensorflow/contrib/lite/toco/model.h
+++ b/tensorflow/contrib/lite/toco/model.h
@@ -1208,14 +1208,12 @@ struct SubOperator : Operator {
SubOperator() : Operator(OperatorType::kSub) {}
};
-// Global sum reduction: computes the sum of all of entries in the input array.
-// Thus the output is "0-dimensional": it consists of a single scalar value.
+// Sum reduction: computes the sum of all of entries across the axes.
//
// Inputs:
// inputs[0]: required: the input array
//
-// TensorFlow equivalent: Sum --- except that we only support the special case
-// of global reduction across all dimensions.
+// TensorFlow equivalent: Sum
struct TensorFlowSumOperator : Operator {
TensorFlowSumOperator() : Operator(OperatorType::kTensorFlowSum) {}
bool keep_dims = false;