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

Method Stringify

tensorflow/core/graph/graph_test.cc:145–153  ·  view source on GitHub ↗

Convert a list of nodes to a sorted list of strings so failure messages are readable.

Source from the content-addressed store, hash-verified

143 // Convert a list of nodes to a sorted list of strings so failure messages
144 // are readable.
145 static std::vector<string> Stringify(const std::vector<Node*>& nodes) {
146 std::vector<string> result;
147 result.reserve(nodes.size());
148 for (Node* n : nodes) {
149 result.push_back(n->DebugString());
150 }
151 std::sort(result.begin(), result.end());
152 return result;
153 }
154};
155
156TEST_F(GraphTest, Constructor) {

Callers

nothing calls this directly

Calls 7

sortFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
DebugStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected