MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SinhGrad

Function SinhGrad

tensorflow/cc/gradients/math_grad.cc:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170REGISTER_GRADIENT_OP("Log1p", Log1pGrad);
171
172Status SinhGrad(const Scope& scope, const Operation& op,
173 const std::vector<Output>& grad_inputs,
174 std::vector<Output>* grad_outputs) {
175 // y = sinh(x)
176 // dy/dx = cosh(x)
177 auto dydx = Cosh(scope, op.input(0));
178 // grad(x) = grad(y) * conj(dy/dx)
179 grad_outputs->push_back(
180 Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx)));
181 return scope.status();
182}
183REGISTER_GRADIENT_OP("Sinh", SinhGrad);
184
185Status CoshGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 6

ConjugateHelperFunction · 0.85
CoshFunction · 0.50
MulFunction · 0.50
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected