diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-17 00:39:12 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-17 00:43:03 -0700 |
commit | f1d42c8967410db1e08c0b6d62dc1fc4844165a8 (patch) | |
tree | 7999c6d75884790d0e74d9fe3091ea08255f48a8 /tensorflow/contrib/lite/toco/model.h | |
parent | 5cf71e75a56a6ec424487492cacde7c9fbc9a5aa (diff) |
Implement ZerosLike
PiperOrigin-RevId: 213227615
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r-- | tensorflow/contrib/lite/toco/model.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h index 164b70f2df..0fd2732973 100644 --- a/tensorflow/contrib/lite/toco/model.h +++ b/tensorflow/contrib/lite/toco/model.h @@ -150,6 +150,7 @@ enum class OperatorType : uint8 { kLogicalOr, kCTCBeamSearchDecoder, kUnpack, + kZerosLike, }; // Helper to deal with TensorFlow arrays using a different ordering of @@ -1849,6 +1850,16 @@ struct UnpackOperator : Operator { ArrayDataType dtype = ArrayDataType::kNone; }; +// ZerosLike operator: +// +// Inputs: +// inputs[0]: required: the input array +// +// TensorFlow equivalent: tf.zeros_like +struct TensorFlowZerosLikeOperator : Operator { + TensorFlowZerosLikeOperator() : Operator(OperatorType::kZerosLike) {} +}; + // 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 |