Skip to content

Commit 4d546f6

Browse files
authored
fix(pe): fix ut of dry run parallel executor (#14359)
test=develop
1 parent 991a9f7 commit 4d546f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/paddle/fluid/tests/unittests/test_parallel_executor_dry_run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
class TestBase(unittest.TestCase):
2222
def main(self,
2323
network_func,
24-
iter=100,
25-
iter_per_pe=100,
24+
iter=10,
25+
iter_per_pe=10,
2626
use_gpu=True,
2727
use_experimental_executor=False):
2828
if use_gpu and not fluid.core.is_compiled_with_cuda():
@@ -45,7 +45,7 @@ def main(self,
4545
exe_strategy._dry_run = True
4646
exe_strategy.use_experimental_executor = use_experimental_executor
4747
pe = fluid.ParallelExecutor(
48-
use_cuda=True,
48+
use_cuda=use_gpu,
4949
loss_name=loss.name,
5050
main_program=main_prog,
5151
exec_strategy=exe_strategy)

0 commit comments

Comments
 (0)