aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc
diff options
context:
space:
mode:
authorGravatar Lakshay Garg <lakshayg@outlook.in>2017-06-09 08:46:08 +0530
committerGravatar gunan <gunan@google.com>2017-06-08 20:16:08 -0700
commite9de087fa7f59c39bbe12ac2c83c5547c83f746c (patch)
tree0993c3053b6af29c5720f06a38074b3995645bb5 /tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc
parent9bb581c7b79a25e69a821724e7c9b2bcd7c8fced (diff)
Implemented sinh and cosh (#10427)
* Implemented sinh and cosh #7531 * Removed Eigen::half from cosh and sinh definitions Refer to Issue #7531 and Pull Request #7628 * Fixed the gradient for sinh in math_grad_test.cc
Diffstat (limited to 'tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc')
-rw-r--r--tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc b/tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc
new file mode 100644
index 0000000000..f8329e50d6
--- /dev/null
+++ b/tensorflow/core/kernels/cwise_op_gpu_sinh.cu.cc
@@ -0,0 +1,26 @@
+/* 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.
+==============================================================================*/
+
+#if GOOGLE_CUDA
+
+#include "tensorflow/core/kernels/cwise_ops_gpu_common.cu.h"
+
+namespace tensorflow {
+namespace functor {
+DEFINE_UNARY2(sinh, float, double);
+} // namespace functor
+} // namespace tensorflow
+
+#endif // GOOGLE_CUDA