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

Function ReverseGrad

tensorflow/cc/gradients/array_grad.cc:272–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270REGISTER_GRADIENT_OP("ReverseSequence", ReverseSequenceGrad);
271
272Status ReverseGrad(const Scope& scope, const Operation& op,
273 const std::vector<Output>& grad_inputs,
274 std::vector<Output>* grad_outputs) {
275 auto reverse_dims = op.input(1);
276 grad_outputs->push_back(Reverse(scope, grad_inputs[0], reverse_dims));
277 grad_outputs->push_back(NoGradient());
278 return scope.status();
279}
280REGISTER_GRADIENT_OP("ReverseV2", ReverseGrad);
281
282Status ScatterNdGrad(const Scope& scope, const Operation& op,

Callers

nothing calls this directly

Calls 5

NoGradientFunction · 0.85
ReverseFunction · 0.50
inputMethod · 0.45
push_backMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected