Fix broken ElementWiseFusionTest.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 27 Apr 2018 22:28:01 +0000 (15:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 27 Apr 2018 22:30:44 +0000 (15:30 -0700)
PiperOrigin-RevId: 194602336

tensorflow/compiler/tests/BUILD
tensorflow/compiler/tests/jit_test.py

index 991e65c..6a7b8fa 100644 (file)
@@ -821,11 +821,6 @@ cuda_py_test(
         "//tensorflow/python:math_ops",
         "//tensorflow/python:nn_ops",
     ],
-    # TODO(b/62961789): Test fails with SIGABRT
-    tags = [
-        "manual",
-        "notap",
-    ],
 )
 
 cc_library(
index 1f7da65..0310cdd 100644 (file)
@@ -489,7 +489,8 @@ class ElementWiseFusionTest(test.TestCase):
   def testElementWiseClustering(self):
     arg0 = np.random.rand(2, 2).astype(np.float32)
     arg1 = np.random.rand(2, 2).astype(np.float32)
-    os.environ["TF_XLA_FLAGS"] = "--tf_xla_fusion_only=true"
+    os.environ["TF_XLA_FLAGS"] = ("--tf_xla_fusion_only=true "
+                                  "--tf_xla_cpu_global_jit")
     tf_op, tf_count = self.simpleTest(arg0, arg1,
                                       config_pb2.OptimizerOptions.OFF)
     self.assertEqual(0, tf_count)