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

Function Contents

tensorflow/core/lib/gtl/flatmap_test.cc:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46// Return contents of map as a sorted list of pairs.
47typedef std::vector<std::pair<int64, int32>> NumMapContents;
48NumMapContents Contents(const NumMap& map) {
49 NumMapContents result;
50 for (const auto& p : map) {
51 result.push_back({p.first, p.second});
52 }
53 std::sort(result.begin(), result.end());
54 return result;
55}
56
57// Fill entries with keys [start,limit).
58void Fill(NumMap* map, int64 start, int64 limit) {

Callers 1

TESTFunction · 0.70

Calls 4

sortFunction · 0.85
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected