| 1097 | } |
| 1098 | |
| 1099 | std::shared_ptr<FunctionLibraryDefinition::FunctionDefAndOpRegistration> |
| 1100 | FunctionLibraryDefinition::FindHelper(const string& func) const { |
| 1101 | auto iter = function_defs_.find(func); |
| 1102 | if (iter == function_defs_.end()) { |
| 1103 | return nullptr; |
| 1104 | } else { |
| 1105 | return iter->second; |
| 1106 | } |
| 1107 | } |
| 1108 | |
| 1109 | Status FunctionLibraryDefinition::AddFunctionDef(const FunctionDef& fdef) { |
| 1110 | mutex_lock l(mu_); |
no test coverage detected