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

Method VerifyGraphStats

tensorflow/core/graph/graph_test.cc:72–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void VerifyGraphStats() {
73 int nodes = 0;
74 for (const Node* n : graph_.nodes()) {
75 VLOG(1) << n->id();
76 ++nodes;
77 }
78 EXPECT_EQ(nodes, graph_.num_nodes());
79 int edges = 0;
80 for (const Edge* e : graph_.edges()) {
81 VLOG(1) << e->id();
82 ++edges;
83 }
84 EXPECT_EQ(edges, graph_.num_edges());
85 }
86
87 Node* AddNodeWithName(const string& name) {
88 Node* node;

Callers

nothing calls this directly

Calls 5

edgesMethod · 0.80
num_edgesMethod · 0.80
nodesMethod · 0.45
idMethod · 0.45
num_nodesMethod · 0.45

Tested by

no test coverage detected