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

Method RemoveEdge

tensorflow/compiler/tf2tensorrt/segment/segment.cc:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void SimpleGraph::RemoveEdge(const SimpleEdge* edge) {
230 auto src = edge->src();
231 auto dst = edge->dst();
232 for (auto it = src->out_edges_.begin(); it != src->out_edges_.end(); ++it) {
233 if (*it == edge) {
234 src->out_edges_.erase(it);
235 break;
236 }
237 }
238 for (auto it = dst->in_edges_.begin(); it != dst->in_edges_.end(); ++it) {
239 if (*it == edge) {
240 dst->in_edges_.erase(it);
241 break;
242 }
243 }
244}
245
246SimpleGraph::~SimpleGraph() {
247 for (auto x : nodes_) delete x;

Callers 14

FunctionalizeLoopFunction · 0.45
AddOutputEdgesMethod · 0.45
RemoveRedundantMergeMethod · 0.45
RemoveRedundantSwitchMethod · 0.45
AddArgNodesFunction · 0.45
ReplaceNodeFunction · 0.45
ReorderInputEdgesFunction · 0.45
ReorderOutputEdgesFunction · 0.45
RearrangeOutputEdgesFunction · 0.45

Calls 5

srcMethod · 0.45
dstMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected