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

Function AsinhGrad

tensorflow/cc/gradients/math_grad.cc:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212REGISTER_GRADIENT_OP("Tanh", TanhGrad);
213
214Status AsinhGrad(const Scope& scope, const Operation& op,
215 const std::vector<Output>& grad_inputs,
216 std::vector<Output>* grad_outputs) {
217 // y = asinh(x)
218 // dy/dx = 1 / cosh(y)
219 auto dydx = Reciprocal(scope, Cosh(scope, op.output(0)));
220 // grad(x) = grad(y) * conj(dy/dx)
221 grad_outputs->push_back(
222 Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx)));
223 return scope.status();
224}
225REGISTER_GRADIENT_OP("Asinh", AsinhGrad);
226
227Status AcoshGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected