Unverified Commit fdf78b86 authored by josh11b's avatar josh11b Committed by GitHub
Browse files

Merge pull request #5561 from tensorflow/josh11b-del-is_single_tower

Drop references to `is_single_tower`.
parents 4bd0d89d b860839f
......@@ -27,21 +27,18 @@ class GetDistributionStrategyTest(tf.test.TestCase):
"""Tests for get_distribution_strategy."""
def test_one_device_strategy_cpu(self):
ds = distribution_utils.get_distribution_strategy(0)
self.assertTrue(ds.is_single_tower)
self.assertEquals(ds.num_towers, 1)
self.assertEquals(len(ds.worker_devices), 1)
self.assertIn('CPU', ds.worker_devices[0])
def test_one_device_strategy_gpu(self):
ds = distribution_utils.get_distribution_strategy(1)
self.assertTrue(ds.is_single_tower)
self.assertEquals(ds.num_towers, 1)
self.assertEquals(len(ds.worker_devices), 1)
self.assertIn('GPU', ds.worker_devices[0])
def test_mirrored_strategy(self):
ds = distribution_utils.get_distribution_strategy(5)
self.assertFalse(ds.is_single_tower)
self.assertEquals(ds.num_towers, 5)
self.assertEquals(len(ds.worker_devices), 5)
for device in ds.worker_devices:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment