| 382 | } |
| 383 | |
| 384 | string Scope::Impl::GetNameForOp(const string& default_name) const { |
| 385 | const string unique_name = |
| 386 | GetUniqueName(default_name, true /* check_single_use */); |
| 387 | const string sep = |
| 388 | name_.empty() || unique_name.empty() ? "" : kScopeSeparator; |
| 389 | return strings::StrCat(name_, sep, unique_name); |
| 390 | } |
| 391 | |
| 392 | string Scope::GetUniqueNameForOp(const string& default_name) const { |
| 393 | if (impl()->single_use_scope()) { |
no test coverage detected