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

Function RealGrad

tensorflow/cc/gradients/math_grad.cc:579–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577REGISTER_GRADIENT_OP("Minimum", MinimumGrad);
578
579Status RealGrad(const Scope& scope, const Operation& op,
580 const std::vector<Output>& grad_inputs,
581 std::vector<Output>* grad_outputs) {
582 auto zero = Cast(scope, Const(scope, 0.0), op.output(0).type());
583 auto dx = Complex(scope, grad_inputs[0], zero);
584 grad_outputs->push_back(dx);
585 return scope.status();
586}
587REGISTER_GRADIENT_OP("Real", RealGrad);
588
589Status ImagGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 7

typeMethod · 0.65
outputMethod · 0.65
CastFunction · 0.50
ConstFunction · 0.50
ComplexFunction · 0.50
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected