| 97 | } |
| 98 | |
| 99 | void 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 | |
| 111 | void SetRequireShapeInferenceFns(TF_Graph* graph, bool require) { |
| 112 | mutex_lock l(graph->mu); |
nothing calls this directly
no test coverage detected