| 1374 | } |
| 1375 | |
| 1376 | string 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 | |
| 1387 | const FunctionDef* FunctionLibraryDefinition::GetAttrImpl( |
| 1388 | const NodeDef& ndef) const { |
no test coverage detected