| 141 | } |
| 142 | |
| 143 | string FunctionNameGenerator::GetName() { |
| 144 | for (;; ++counter_) { |
| 145 | const string candidate = strings::StrCat(name_, "_", counter_); |
| 146 | if (flib_def_->Find(candidate) == nullptr) { |
| 147 | return candidate; |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | } // namespace tensorflow |