From af91444cd6039ae7f57cfdcd3549adf433655f6d Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Sat, 29 Dec 2018 17:15:01 +0800 Subject: [PATCH] polish unittest test=develop --- .../fluid/tests/unittests/test_parallel_executor_mnist.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_parallel_executor_mnist.py b/python/paddle/fluid/tests/unittests/test_parallel_executor_mnist.py index 63bc1de208..9768f7db26 100644 --- a/python/paddle/fluid/tests/unittests/test_parallel_executor_mnist.py +++ b/python/paddle/fluid/tests/unittests/test_parallel_executor_mnist.py @@ -115,9 +115,7 @@ class TestMNIST(TestParallelExecutorBase): def test_simple_fc(self): # use_cuda - if core.is_compiled_with_cuda(): - self.check_simple_fc_convergence(True) - self.check_simple_fc_convergence(True, use_reduce=False) + self.check_simple_fc_convergence(True) self.check_simple_fc_convergence(False) def test_simple_fc_with_new_strategy(self): @@ -154,8 +152,7 @@ class TestMNIST(TestParallelExecutorBase): np.mean(parallel_last_loss), single_last_loss, delta=1e-6) def test_simple_fc_parallel_accuracy(self): - if core.is_compiled_with_cuda(): - self.check_simple_fc_parallel_accuracy(True) + self.check_simple_fc_parallel_accuracy(True) self.check_simple_fc_parallel_accuracy(False) def check_batchnorm_fc_convergence(self, use_cuda, use_fast_executor): -- GitLab