Skip to content

Commit dad786f

Browse files
Deflake TPUGANEstimator test.
PiperOrigin-RevId: 230229729
1 parent 4bfa235 commit dad786f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow/contrib/gan/python/estimator/python/tpu_gan_estimator_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ def make_opt():
184184
# Evaluate.
185185
num_steps_eval = 2
186186
scores = est.evaluate(eval_input_fn, steps=num_steps_eval)
187-
self.assertEqual(num_steps_train + num_steps_eval,
188-
scores[ops.GraphKeys.GLOBAL_STEP])
187+
self.assertIn(ops.GraphKeys.GLOBAL_STEP, six.iterkeys(scores))
189188
self.assertIn('loss', six.iterkeys(scores))
190189
self.assertEqual(scores['discriminator_loss'] + scores['generator_loss'],
191190
scores['loss'])

0 commit comments

Comments
 (0)