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

Function Atan2Grad

tensorflow/cc/gradients/math_grad.cc:254–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252REGISTER_GRADIENT_OP("Atanh", AtanhGrad);
253
254Status Atan2Grad(const Scope& scope, const Operation& op,
255 const std::vector<Output>& grad_inputs,
256 std::vector<Output>* grad_outputs) {
257 auto y = op.input(0);
258 auto x = op.input(1);
259 Output grad_inv = Div(scope, grad_inputs[0],
260 Add(scope, Square(scope, x), Square(scope, y)));
261 grad_outputs->push_back(Mul(scope, x, grad_inv));
262 grad_outputs->push_back(Mul(scope, Neg(scope, y), grad_inv));
263 return scope.status();
264}
265REGISTER_GRADIENT_OP("Atan2", Atan2Grad);
266
267Status SigmoidGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 8

DivFunction · 0.50
AddFunction · 0.50
SquareFunction · 0.50
MulFunction · 0.50
NegFunction · 0.50
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected