diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-06-07 02:05:06 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-07 02:07:45 -0700 |
commit | c70b7128bfb9f0283c60bbec8fd7b0c12f741d95 (patch) | |
tree | 49a75161cb036b87817436d2bad9b79bfbb61425 /tensorflow/contrib/lite/toco/model.h | |
parent | c2368f875b53e9144a1803a3e67c5a61aa9c5862 (diff) |
Implementation of TensorFlowEqual and TensorFlowNotEqual.
PiperOrigin-RevId: 199602232
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r-- | tensorflow/contrib/lite/toco/model.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h index 1a4f87e363..81beb29372 100644 --- a/tensorflow/contrib/lite/toco/model.h +++ b/tensorflow/contrib/lite/toco/model.h @@ -136,6 +136,8 @@ enum class OperatorType { kReorderAxes, kSelect, kSparseToDense, + kTensorFlowEqual, + kTensorFlowNotEqual, }; // Helper to deal with TensorFlow arrays using a different ordering of @@ -1358,6 +1360,22 @@ struct TensorFlowGreaterEqualOperator : Operator { : Operator(OperatorType::kTensorFlowGreaterEqual) {} }; +// TensorFlow Equal equivalent. Refer to TensorFlow documentation for +// details. +// Not fully supported, just a placeholder to handle TensorFlow graphs and +// support graph transformations to other operator types by matching sub-graphs. +// Typically, this is only used as an input to an Assert node, so can be +// removed as an unused node as we drop Assert nodes. +struct TensorFlowEqualOperator : Operator { + TensorFlowEqualOperator() : Operator(OperatorType::kTensorFlowEqual) {} +}; + +// TensorFlow Not Equal equivalent. Refer to TensorFlow documentation for +// details. +struct TensorFlowNotEqualOperator : Operator { + TensorFlowNotEqualOperator() : Operator(OperatorType::kTensorFlowNotEqual) {} +}; + // Global max reduction: computes the max of all of entries in the input array. // Thus the output is "0-dimensional": it consists of a single scalar value. // |