diff options
Diffstat (limited to 'tensorflow/core/ops/math_grad.cc')
-rw-r--r-- | tensorflow/core/ops/math_grad.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tensorflow/core/ops/math_grad.cc b/tensorflow/core/ops/math_grad.cc index 9a58a31757..a530d286f7 100644 --- a/tensorflow/core/ops/math_grad.cc +++ b/tensorflow/core/ops/math_grad.cc @@ -155,26 +155,6 @@ Status Log1pGrad(const AttrSlice& attrs, FunctionDef* g) { } REGISTER_OP_GRADIENT("Log1p", Log1pGrad); -Status SinhGrad(const AttrSlice& attrs, FunctionDef* g) { - // clang-format off - return GradForUnaryCwise(g, { - {{"cosh"}, "Cosh", {"x"}, {}, {"dy"}}, - {{"dx"}, "Mul", {"dy", "cosh"}}, // dy * cosh(x) - }); - // clang-format on -} -REGISTER_OP_GRADIENT("Sinh", SinhGrad); - -Status CoshGrad(const AttrSlice& attrs, FunctionDef* g) { - // clang-format off - return GradForUnaryCwise(g, { - {{"sinh"}, "Sinh", {"x"}, {}, {"dy"}}, - {{"dx"}, "Mul", {"dy", "sinh"}}, // dy * sinh(x) - }); - // clang-format on -} -REGISTER_OP_GRADIENT("Cosh", CoshGrad); - Status TanhGrad(const AttrSlice& attrs, FunctionDef* g) { // clang-format off return GradForUnaryCwise(g, { |