aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/cwise_op_digamma.cc
diff options
context:
space:
mode:
authorGravatar Eugene Brevdo <ebrevdo@gmail.com>2016-02-18 09:29:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-02-18 11:27:58 -0800
commit61f12e51ca81c539e69c4d2f1249f16f823c8ba5 (patch)
tree730bae109b92cb80183fef0f966a0b8b55a24dc2 /tensorflow/core/kernels/cwise_op_digamma.cc
parentc89e89f994f32707bb9fb6dca342b612f19c9db0 (diff)
Add digamma op - derivative of lgamma op.
Change: 114971245
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_digamma.cc')
-rw-r--r--tensorflow/core/kernels/cwise_op_digamma.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_digamma.cc b/tensorflow/core/kernels/cwise_op_digamma.cc
new file mode 100644
index 0000000000..393f391a48
--- /dev/null
+++ b/tensorflow/core/kernels/cwise_op_digamma.cc
@@ -0,0 +1,23 @@
+/* Copyright 2016 Google Inc. 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 {
+REGISTER2(UnaryOp, CPU, "Digamma", functor::digamma, float, double);
+#if GOOGLE_CUDA
+REGISTER2(UnaryOp, GPU, "Digamma", functor::digamma, float, double);
+#endif
+} // namespace tensorflow