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

Method UniqueFunctionName

tensorflow/core/framework/function.cc:1376–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374}
1375
1376string FunctionLibraryDefinition::UniqueFunctionName(StringPiece prefix) const {
1377 tf_shared_lock l(mu_);
1378 int index = 0;
1379 string name = strings::StrCat(prefix, index);
1380 while (function_defs_.find(name) != function_defs_.end()) {
1381 ++index;
1382 name = strings::StrCat(prefix, index);
1383 }
1384 return name;
1385}
1386
1387const FunctionDef* FunctionLibraryDefinition::GetAttrImpl(
1388 const NodeDef& ndef) const {

Callers 6

RunMethod · 0.80
MaybeRewriteWhileNodeFunction · 0.80
MaybeRewriteIfNodeFunction · 0.80

Calls 3

StrCatFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected