未验证 提交 4d546f60 编写于 作者: Y Yu Yang 提交者: GitHub

fix(pe): fix ut of dry run parallel executor (#14359)

test=develop
上级 991a9f7b
...@@ -21,8 +21,8 @@ import six ...@@ -21,8 +21,8 @@ import six
class TestBase(unittest.TestCase): class TestBase(unittest.TestCase):
def main(self, def main(self,
network_func, network_func,
iter=100, iter=10,
iter_per_pe=100, iter_per_pe=10,
use_gpu=True, use_gpu=True,
use_experimental_executor=False): use_experimental_executor=False):
if use_gpu and not fluid.core.is_compiled_with_cuda(): if use_gpu and not fluid.core.is_compiled_with_cuda():
...@@ -45,7 +45,7 @@ class TestBase(unittest.TestCase): ...@@ -45,7 +45,7 @@ class TestBase(unittest.TestCase):
exe_strategy._dry_run = True exe_strategy._dry_run = True
exe_strategy.use_experimental_executor = use_experimental_executor exe_strategy.use_experimental_executor = use_experimental_executor
pe = fluid.ParallelExecutor( pe = fluid.ParallelExecutor(
use_cuda=True, use_cuda=use_gpu,
loss_name=loss.name, loss_name=loss.name,
main_program=main_prog, main_program=main_prog,
exec_strategy=exe_strategy) exec_strategy=exe_strategy)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册