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

Function ComplexGrad

tensorflow/cc/gradients/math_grad.cc:599–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597REGISTER_GRADIENT_OP("Imag", ImagGrad);
598
599Status ComplexGrad(const Scope& scope, const Operation& op,
600 const std::vector<Output>& grad_inputs,
601 std::vector<Output>* grad_outputs) {
602 auto gx_1 = Real(scope, grad_inputs[0]);
603 auto gx_2 = Imag(scope, grad_inputs[0]);
604 return BinaryGradCommon(scope, op, grad_outputs, gx_1, gx_2);
605}
606REGISTER_GRADIENT_OP("Complex", ComplexGrad);
607
608Status AngleGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 3

BinaryGradCommonFunction · 0.85
RealFunction · 0.50
ImagFunction · 0.50

Tested by

no test coverage detected