def testRandom_highDimensionality(self):
    np.random.seed(100)
    for _ in range(20):
        rank = np.random.randint(5, 15)
        shape = [np.random.randint(1, 4) for _ in range(rank)]
        arr = np.random.random(shape)
        sort_axis = np.random.choice(rank)
        with self.cached_session():
            self.assertAllEqual(np.sort(arr, axis=sort_axis), sort_ops.sort(constant_op.constant(arr), axis=sort_axis).eval())
def testRandom_highDimensionality(self):
    np.random.seed(100)
    for _ in range(20):
        rank = np.random.randint(5, 15)
        shape = [np.random.randint(1, 4) for _ in range(rank)]
        arr = np.random.random(shape)
        sort_axis = np.random.choice(rank)
        with self.cached_session():
            self.assertAllEqual(np.sort(arr, axis=sort_axis), sort_ops.sort(constant_op.constant(arr), axis=sort_axis).eval())