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

Method FindHelper

tensorflow/core/framework/function.cc:1099–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097}
1098
1099std::shared_ptr<FunctionLibraryDefinition::FunctionDefAndOpRegistration>
1100FunctionLibraryDefinition::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
1109Status FunctionLibraryDefinition::AddFunctionDef(const FunctionDef& fdef) {
1110 mutex_lock l(mu_);

Callers 1

CopyFunctionDefFromMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected