Returns whether a user-defined function with `name` already exists in the graph.
| 172 | // Returns whether a user-defined function with `name` already exists in the |
| 173 | // graph. |
| 174 | bool HasFunction(const string& name) { |
| 175 | return graph_.flib_def().Find(name) != nullptr; |
| 176 | } |
| 177 | |
| 178 | private: |
| 179 | Graph graph_; |