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

Method HasFunction

tensorflow/core/graph/graph_def_builder.h:174–176  ·  view source on GitHub ↗

Returns whether a user-defined function with `name` already exists in the graph.

Source from the content-addressed store, hash-verified

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_;

Callers 1

AddFunctionMethod · 0.45

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected