| 1298 | } |
| 1299 | |
| 1300 | Status 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 | |
| 1309 | Status FunctionLibraryDefinition::ReplaceGradient(const GradientDef& grad) { |
| 1310 | mutex_lock l(mu_); |
no outgoing calls
no test coverage detected