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

Method ReplaceGradient

tensorflow/core/framework/function.cc:1309–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307}
1308
1309Status FunctionLibraryDefinition::ReplaceGradient(const GradientDef& grad) {
1310 mutex_lock l(mu_);
1311 bool added;
1312 TF_RETURN_IF_ERROR(RemoveGradient(grad.function_name()));
1313 TF_RETURN_IF_ERROR(AddGradientDefHelper(grad, &added));
1314 return Status::OK();
1315}
1316
1317Status FunctionLibraryDefinition::RemoveFunction(const string& func) {
1318 mutex_lock l(mu_);

Callers 1

Calls 1

function_nameMethod · 0.80

Tested by

no test coverage detected