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

Function _ascending_sort

tensorflow/python/ops/sort_ops.py:207–211  ·  view source on GitHub ↗
(values, axis, return_argsort=False)

Source from the content-addressed store, hash-verified

205
206
207def _ascending_sort(values, axis, return_argsort=False):
208 # Negate the values to get the ascending order from descending sort.
209 values_or_indices = _descending_sort(-values, axis, return_argsort)
210 # If not argsort, negate the values again.
211 return values_or_indices if return_argsort else -values_or_indices
212
213
214_SORT_IMPL = {

Callers

nothing calls this directly

Calls 1

_descending_sortFunction · 0.85

Tested by

no test coverage detected