Deflake TPUGANEstimator test.
PiperOrigin-RevId: 230229729
This commit is contained in:
parent
4bfa235915
commit
dad786f963
@ -184,8 +184,7 @@ class TPUGANEstimatorIntegrationTest(test.TestCase, parameterized.TestCase):
|
||||
# Evaluate.
|
||||
num_steps_eval = 2
|
||||
scores = est.evaluate(eval_input_fn, steps=num_steps_eval)
|
||||
self.assertEqual(num_steps_train + num_steps_eval,
|
||||
scores[ops.GraphKeys.GLOBAL_STEP])
|
||||
self.assertIn(ops.GraphKeys.GLOBAL_STEP, six.iterkeys(scores))
|
||||
self.assertIn('loss', six.iterkeys(scores))
|
||||
self.assertEqual(scores['discriminator_loss'] + scores['generator_loss'],
|
||||
scores['loss'])
|
||||
|
Loading…
Reference in New Issue
Block a user