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

Function AcoshGrad

tensorflow/cc/gradients/math_grad.cc:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225REGISTER_GRADIENT_OP("Asinh", AsinhGrad);
226
227Status AcoshGrad(const Scope& scope, const Operation& op,
228 const std::vector<Output>& grad_inputs,
229 std::vector<Output>* grad_outputs) {
230 // y = acosh(x)
231 // dy/dx = 1 / sinh(y)
232 auto dydx = Reciprocal(scope, Sinh(scope, op.output(0)));
233 // grad(x) = grad(y) * conj(dy/dx)
234 grad_outputs->push_back(
235 Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx)));
236 return scope.status();
237}
238REGISTER_GRADIENT_OP("Acosh", AcoshGrad);
239
240Status AtanhGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 7

ConjugateHelperFunction · 0.85
outputMethod · 0.65
ReciprocalFunction · 0.50
SinhFunction · 0.50
MulFunction · 0.50
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected