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

Method CallGradFunction

tensorflow/cc/framework/gradients.cc:379–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379Status SymbolicGradientBuilder::CallGradFunction(
380 const Operation& op,
381 const std::vector<Output>& grad_inputs,
382 std::vector<Output>* grad_outputs) {
383 ops::GradFunc grad_fn;
384 TF_RETURN_IF_ERROR(registry_->Lookup(op.node()->type_string(), &grad_fn));
385 TF_RETURN_IF_ERROR(grad_fn(scope_, op, grad_inputs, grad_outputs));
386 TF_RETURN_IF_ERROR(scope_.status());
387 return Status::OK();
388}
389
390Status SymbolicGradientBuilder::ProcessWhileLoop(Node* exit_node,
391 const Output& summed_grads) {

Callers

nothing calls this directly

Calls 4

grad_fnFunction · 0.50
LookupMethod · 0.45
nodeMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected