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

Function STLSortAndRemoveDuplicates

tensorflow/core/grappler/utils.cc:453–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452template <typename T>
453inline void STLSortAndRemoveDuplicates(T* v) {
454 std::sort(v->begin(), v->end());
455 v->erase(std::unique(v->begin(), v->end()), v->end());
456}
457
458} // namespace
459

Callers 1

EraseNodesFromGraphFunction · 0.70

Calls 5

sortFunction · 0.85
uniqueFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected