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

Function LgammaGrad

tensorflow/cc/gradients/math_grad.cc:786–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784REGISTER_GRADIENT_OP("Erf", ErfGrad);
785
786Status LgammaGrad(const Scope& scope, const Operation& op,
787 const std::vector<Output>& grad_inputs,
788 std::vector<Output>* grad_outputs) {
789 auto grad = grad_inputs[0];
790 Scope grad_scope = scope.WithControlDependencies(grad);
791 auto x = ConjugateHelper(grad_scope, op.input(0));
792 auto dx = Mul(grad_scope, grad, Digamma(grad_scope, x));
793 grad_outputs->push_back(dx);
794 return grad_scope.status();
795}
796REGISTER_GRADIENT_OP("Lgamma", LgammaGrad);
797
798Status MinOrMaxGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected