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

Method VerifyNodes

tensorflow/core/graph/graph_test.cc:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 ~GraphTest() override {}
56
57 static void VerifyNodes(Node* node, const std::vector<Node*>& expected_in,
58 const std::vector<Node*>& expected_out) {
59 std::vector<Node*> in;
60 for (const Edge* e : node->in_edges()) {
61 in.push_back(e->src());
62 }
63 EXPECT_EQ(Stringify(expected_in), Stringify(in));
64
65 std::vector<Node*> out;
66 for (const Edge* e : node->out_edges()) {
67 out.push_back(e->dst());
68 }
69 EXPECT_EQ(Stringify(expected_out), Stringify(out));
70 }
71
72 void VerifyGraphStats() {
73 int nodes = 0;

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.45
srcMethod · 0.45
dstMethod · 0.45

Tested by

no test coverage detected