| 1087 | } |
| 1088 | |
| 1089 | const FunctionDef* FunctionLibraryDefinition::Find(const string& func) const { |
| 1090 | tf_shared_lock l(mu_); |
| 1091 | auto result = FindHelper(func); |
| 1092 | if (result) { |
| 1093 | return &result->fdef; |
| 1094 | } else { |
| 1095 | return nullptr; |
| 1096 | } |
| 1097 | } |
| 1098 | |
| 1099 | std::shared_ptr<FunctionLibraryDefinition::FunctionDefAndOpRegistration> |
| 1100 | FunctionLibraryDefinition::FindHelper(const string& func) const { |
no outgoing calls