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

Function RemoveAllControlInputs

tensorflow/c/python_api.cc:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void RemoveAllControlInputs(TF_Graph* graph, TF_Operation* op) {
100 mutex_lock l(graph->mu);
101 std::vector<const Edge*> control_edges;
102 for (const Edge* edge : op->node.in_edges()) {
103 if (!edge->IsControlEdge()) continue;
104 control_edges.push_back(edge);
105 }
106 for (const Edge* edge : control_edges) {
107 graph->graph.RemoveControlEdge(edge);
108 }
109}
110
111void SetRequireShapeInferenceFns(TF_Graph* graph, bool require) {
112 mutex_lock l(graph->mu);

Callers

nothing calls this directly

Calls 3

RemoveControlEdgeMethod · 0.80
IsControlEdgeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected