aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/model.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-07-30 02:41:59 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-30 02:45:14 -0700
commit333f9c03950a1b6afb8a902b2dc3d883be490b86 (patch)
tree1c759f72f699df5078f085a517334ce8da8f1fec /tensorflow/contrib/lite/toco/model.h
parent9e0b05bbc4bb88d1b34fb2147429dc4ad7bd25cd (diff)
Implementation of logical_or.
PiperOrigin-RevId: 206549781
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r--tensorflow/contrib/lite/toco/model.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h
index a3827977fd..7d0dbfcc05 100644
--- a/tensorflow/contrib/lite/toco/model.h
+++ b/tensorflow/contrib/lite/toco/model.h
@@ -147,6 +147,7 @@ enum class OperatorType : uint8 {
kAny,
kLogicalAnd,
kLogicalNot,
+ kLogicalOr,
};
// Helper to deal with TensorFlow arrays using a different ordering of
@@ -1790,6 +1791,17 @@ struct OneHotOperator : Operator {
int axis = -1;
};
+// LogicalOr operator:
+//
+// Inputs:
+// Inputs[0]: required: A Bool tensor.
+// Inputs[1]: required: A Bool tensor.
+//
+// TensorFlow equivalent: LogicalOr.
+struct LogicalOrOperator : Operator {
+ LogicalOrOperator() : Operator(OperatorType::kLogicalOr) {}
+};
+
// Alloc's are used for transient arrays only. An Alloc specifies which interval
// of the "transient_data" workspace buffer passed to inference functions, is to
// be used for the transient array at hand. The 'start' and 'end' values are