def testSort_staticallyKnownRank_constantTransposition(self):
    tensor = random_ops.random_uniform(random_ops.random_uniform(shape=(5,), minval=0, maxval=10, dtype=dtypes.int32))
    sort_ops.sort(tensor, axis=1)
    transposition = ops.get_default_graph().get_tensor_by_name('sort/transposition:0')
    self.assertFalse((tensor_util.constant_value(transposition) is None))
    self.assertAllEqual(tensor_util.constant_value(transposition), [0, 4, 2, 3, 1])
def testSort_staticallyKnownRank_constantTransposition(self):
    tensor = random_ops.random_uniform(random_ops.random_uniform(shape=(5,), minval=0, maxval=10, dtype=dtypes.int32))
    sort_ops.sort(tensor, axis=1)
    transposition = ops.get_default_graph().get_tensor_by_name('sort/transposition:0')
    self.assertFalse((tensor_util.constant_value(transposition) is None))
    self.assertAllEqual(tensor_util.constant_value(transposition), [0, 4, 2, 3, 1])