def testArgsort_1d(self):
    arr = np.random.random(42)
    with self.cached_session():
        self.assertAllEqual(np.sort(arr), array_ops.gather(arr, sort_ops.argsort(arr)).eval())
def testArgsort_1d(self):
    arr = np.random.random(42)
    with self.cached_session():
        self.assertAllEqual(np.sort(arr), array_ops.gather(arr, sort_ops.argsort(arr)).eval())