Enable InvertPermutation test with MLIR bridge

Lowering pattern for InvertPermutation is fixed now.

PiperOrigin-RevId: 316218452
Change-Id: I80f45227f8c77ab8fba2066579d4640216f9968b
This commit is contained in:
Smit Hinsu 2020-06-12 19:21:21 -07:00 committed by TensorFlower Gardener
parent 36140531e8
commit 8aa3df0f97

View File

@ -918,16 +918,12 @@ class UnaryOpsTest(xla_test.XLATestCase):
np.array([1, 0x100000003f800000], np.int64),
expected=np.array([1, 0x100000003f800000], np.uint64))
@test_util.disable_mlir_bridge(
"TODO(b/153812660): Handle tf.InvertPermutation compilation")
def testInvertPermutation(self):
self._assertOpOutputMatchesExpected(
array_ops.invert_permutation,
np.array([1, 2, 0], np.int32),
expected=np.array([2, 0, 1], dtype=np.int32))
@test_util.disable_mlir_bridge(
"TODO(b/153812660): Handle tf.InvertPermutation compilation")
def testInvertPermutationTwiceIsNoop(self):
self._assertOpOutputMatchesExpected(
lambda x: array_ops.invert_permutation(array_ops.invert_permutation(x)),