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

Function IsFunction

tensorflow/core/framework/graph_def_util.cc:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static bool IsFunction(const GraphDef& graph_def, const string& op_name) {
130 for (const auto& func_def : graph_def.library().function()) {
131 if (op_name == func_def.signature().name()) return true;
132 }
133 return false;
134}
135
136Status RemoveNewDefaultAttrsFromGraphDef(
137 GraphDef* graph_def, const OpRegistryInterface& consumer_op_registry,

Callers 1

Calls 4

signatureMethod · 0.80
nameMethod · 0.65
functionMethod · 0.45
libraryMethod · 0.45

Tested by

no test coverage detected