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

Method HasEdge

tensorflow/core/graph/subgraph_test.cc:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 bool HasEdge(const string& src, int src_out, const string& dst, int dst_in) {
96 for (const Edge* e : g_->edges()) {
97 if (e->src()->name() == src && e->src_output() == src_out &&
98 e->dst()->name() == dst && e->dst_input() == dst_in)
99 return true;
100 }
101 return false;
102 }
103 bool HasControlEdge(const string& src, const string& dst) {
104 return HasEdge(src, Graph::kControlSlot, dst, Graph::kControlSlot);
105 }

Callers

nothing calls this directly

Calls 6

edgesMethod · 0.80
nameMethod · 0.65
srcMethod · 0.45
src_outputMethod · 0.45
dstMethod · 0.45
dst_inputMethod · 0.45

Tested by

no test coverage detected