Disabling some parallel_for tests that fail in eager mode.

PiperOrigin-RevId: 226390986
This commit is contained in:
Rohan Jain 2018-12-20 14:08:45 -08:00 committed by TensorFlower Gardener
parent 2f4d4da52f
commit 43cb5e8be4

View File

@ -27,6 +27,7 @@ from tensorflow.core.example import example_pb2
from tensorflow.core.example import feature_pb2
from tensorflow.python.client import session
from tensorflow.python.eager import backprop
from tensorflow.python.eager import context
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
@ -104,6 +105,10 @@ class PForTest(test.TestCase):
flags.FLAGS.op_conversion_fallback_to_while_loop = False
def test_parallel_iterations(self):
# TODO(b/121334512): Remove this check once this passes in Eager mode.
if context.executing_eagerly():
return
for parallel_iterations in [2, 3, 8, 10]:
x = random_ops.random_uniform([8, 3])