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

Function SignGrad

tensorflow/cc/gradients/math_grad.cc:283–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281REGISTER_GRADIENT_OP("Sigmoid", SigmoidGrad);
282
283Status SignGrad(const Scope& scope, const Operation& op,
284 const std::vector<Output>& grad_inputs,
285 std::vector<Output>* grad_outputs) {
286 auto shape = Shape(scope, op.input(0));
287 auto zero = Cast(scope, Const(scope, 0.0), op.input(0).type());
288 auto dx = Fill(scope, shape, zero);
289 grad_outputs->push_back(dx);
290 return scope.status();
291}
292REGISTER_GRADIENT_OP("Sign", SignGrad);
293
294Status SinGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 8

typeMethod · 0.65
ShapeClass · 0.50
CastFunction · 0.50
ConstFunction · 0.50
FillFunction · 0.50
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected