Home
last modified time | relevance | path

Searched refs:argsort (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dtopk_op_test.py109 indices = np.argsort(-inputs)[:k]
122 indices = np.argsort(-inputs, axis=1)
136 indices = np.argsort(-inputs, axis=1)[:, :k]
150 indices = np.argsort(-inputs, axis=1)[:, :k]
166 indices = np.argsort(-inputs, axis=1, kind="mergesort")[:, :k]
Deig_op_test.py97 perm = np.argsort(e.real + e.imag, -1)
104 perm = np.argsort(e.real + e.imag, -1)
233 idx = sort_ops.argsort(math_ops.real(e) + math_ops.imag(e), axis=-1)
Dself_adjoint_eig_op_test.py100 perm = np.argsort(e, -1)
Dlookup_ops_test.py1571 pairs = pairs[pairs[:, 0].argsort()]
Dmetrics_test.py1377 inds = np.argsort(-predictions)
/external/tensorflow/tensorflow/python/ops/
Dsort_ops_test.py124 array_ops.gather(arr, sort_ops.argsort(arr)).eval())
132 np.argsort(arr, axis=axis),
133 sort_ops.argsort(arr, axis=axis).eval())
Dsort_ops.py92 def argsort(values, axis=-1, direction='ASCENDING', stable=False, name=None): function
Dimage_ops_impl.py5450 sorted_scores_indices = sort_ops.argsort(
/external/tensorflow/tensorflow/compiler/tests/
Dsort_ops_test.py147 sorted_indices = np.argsort(inputs[0], axis=dimension)
189 sorted_indices = np.argsort(100 * inputs[0] + inputs[1])
262 indices = x.argsort()[::-1][:k]
298 indices = x.argsort(axis=1)[::, -1:-k - 1:-1]
362 indices = x.argsort(axis=1)[::, -1:-k - 1:-1]
Dxla_ops_test.py426 shuffle_indices = np.argsort(np.random.randn(xs.shape[0]))
439 shuffle_indices = np.argsort(np.random.randn(xs.shape[1]))
451 xs = xs[np.argsort(np.random.randn(xs.shape[0]))]
452 xs = xs[:, np.argsort(np.random.randn(xs.shape[1]))]
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_math_ops_test.py171 self._testUnaryOp(np_math_ops.argsort, np.argsort, 'argsort')
176 np.testing.assert_equal(np_math_ops.argsort(a, kind='stable'), r)
Dnp_math_ops.py1163 def argsort(a, axis=-1, kind='quicksort', order=None): # pylint: disable=missing-docstring function
1178 return sort_ops.argsort(a, axis, stable=stable)
/external/tensorflow/tensorflow/lite/examples/python/
Dlabel_image.py93 top_k = results.argsort()[-5:][::-1]
/external/tensorflow/tensorflow/examples/speech_commands/
Dlabel_wav_dir.py76 top_k = predictions.argsort()[-num_top_predictions:][::-1]
Dlabel_wav.py68 top_k = predictions.argsort()[-num_top_predictions:][::-1]
/external/tensorflow/tensorflow/examples/label_image/
Dlabel_image.py135 top_k = results.argsort()[-5:][::-1]
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinear_operator_permutation.py214 perm = sort_ops.argsort(perm, axis=-1)
Dlinear_operator_util.py474 inverse_perm = np.argsort(perm)
/external/tensorflow/tensorflow/python/keras/applications/
Dimagenet_utils.py162 top_indices = pred.argsort()[-top:][::-1]
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Ddiscretization.py128 merged = merged[merged[:, 0].argsort()]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_array_ops.py618 permutation = sort_ops.argsort(partitions, stable=True)
/external/tensorflow/tensorflow/python/autograph/operators/
Dpy_builtins.py618 order = sort_ops.argsort(mapped, direction=direction)
/external/tensorflow/third_party/py/numpy/tf_numpy_api/
Dtensorflow.experimental.numpy.pbtxt196 name: "argsort"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.pbtxt464 name: "argsort"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.pbtxt788 name: "argsort"

12