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

Function Expm1Grad

tensorflow/cc/gradients/math_grad.cc:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130REGISTER_GRADIENT_OP("Exp", ExpGrad);
131
132Status Expm1Grad(const Scope& scope, const Operation& op,
133 const std::vector<Output>& grad_inputs,
134 std::vector<Output>* grad_outputs) {
135 // y = expm1(x)
136 // dy/dx = exp(x)
137 auto dydx = Exp(scope, op.input(0));
138 // grad(x) = grad(y) * conj(dy/dx)
139 grad_outputs->push_back(
140 Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx)));
141 return scope.status();
142}
143REGISTER_GRADIENT_OP("Expm1", Expm1Grad);
144
145Status LogGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected