aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/cwise_op_not_equal_to_2.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-09-28 19:28:55 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-28 20:36:00 -0700
commita373b0f6bf3dd3ebd80ad9c72485de9c37c815ae (patch)
treead1ab9f9041d6865de63d43574395c86e672a369 /tensorflow/core/kernels/cwise_op_not_equal_to_2.cc
parent1ba2b851402ac6edbf4549169006252c2bf8ae5a (diff)
Split cwise_op_equal_to, cwise_op_not_equal, cwise_op_add, and cwise_op_mul
into two files each, to improve compilation times. Remove the REGISTER10, REGISTER11, REGISTER12 macros; with that many types, we'll want to shard into instead. Change: 134616712
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_not_equal_to_2.cc')
-rw-r--r--tensorflow/core/kernels/cwise_op_not_equal_to_2.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_not_equal_to_2.cc b/tensorflow/core/kernels/cwise_op_not_equal_to_2.cc
new file mode 100644
index 0000000000..59424d7a28
--- /dev/null
+++ b/tensorflow/core/kernels/cwise_op_not_equal_to_2.cc
@@ -0,0 +1,34 @@
+/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+==============================================================================*/
+
+#include "tensorflow/core/kernels/cwise_ops_common.h"
+
+namespace tensorflow {
+
+// REGISTER# macros ignore all but first type (assumed to be float) when
+// __ANDROID_TYPES_SLIM__ is defined. Since this file is the second of two
+// sharded files, only make its register calls when not __ANDROID_TYPES_SLIM__.
+#if !defined(__ANDROID_TYPES_SLIM__)
+
+REGISTER6(BinaryOp, CPU, "NotEqual", functor::not_equal_to, int32, int64,
+ complex64, complex128, string, bool);
+#if GOOGLE_CUDA
+REGISTER4(BinaryOp, GPU, "NotEqual", functor::not_equal_to, int8, int16, int64,
+ bool);
+
+#endif // GOOGLE_CUDA
+
+#endif // !defined(__ANDROID_TYPES_SLIM__)
+} // namespace tensorflow