| 135 | // Sorts and removes duplicates from a sequence container. |
| 136 | template <typename T> |
| 137 | inline void STLSortAndRemoveDuplicates(T* v) { |
| 138 | std::sort(v->begin(), v->end()); |
| 139 | v->erase(std::unique(v->begin(), v->end()), v->end()); |
| 140 | } |
| 141 | |
| 142 | } // namespace gtl |
| 143 | } // namespace tensorflow |