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

Function ImagGrad

tensorflow/cc/gradients/math_grad.cc:589–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587REGISTER_GRADIENT_OP("Real", RealGrad);
588
589Status ImagGrad(const Scope& scope, const Operation& op,
590 const std::vector<Output>& grad_inputs,
591 std::vector<Output>* grad_outputs) {
592 auto zero = Cast(scope, Const(scope, 0.0), op.output(0).type());
593 auto dx = Complex(scope, zero, grad_inputs[0]);
594 grad_outputs->push_back(dx);
595 return scope.status();
596}
597REGISTER_GRADIENT_OP("Imag", ImagGrad);
598
599Status ComplexGrad(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