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

Method ReplaceFunction

tensorflow/core/framework/function.cc:1300–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298}
1299
1300Status FunctionLibraryDefinition::ReplaceFunction(const string& func,
1301 const FunctionDef& fdef) {
1302 mutex_lock l(mu_);
1303 bool added;
1304 TF_RETURN_IF_ERROR(RemoveFunctionHelper(func));
1305 TF_RETURN_IF_ERROR(AddFunctionDefHelper(fdef, &added));
1306 return Status::OK();
1307}
1308
1309Status FunctionLibraryDefinition::ReplaceGradient(const GradientDef& grad) {
1310 mutex_lock l(mu_);

Calls

no outgoing calls

Tested by

no test coverage detected