未验证 提交 3ccc0a2f 编写于 作者: W wanghuancoder 提交者: GitHub

enable test_parallel_executor_fetch_isolated_var (#28219)

* enable test_parallel_executor_fetch_isolated_var, test=develop

* add enable_static, test=develop

* set test_parallel_executor_fetch_isolated_var RUN_TYPE=DIST, develop=test
上级 571a63e7
...@@ -339,7 +339,6 @@ list(REMOVE_ITEM TEST_OPS test_conv3d_transpose_op) ...@@ -339,7 +339,6 @@ list(REMOVE_ITEM TEST_OPS test_conv3d_transpose_op)
# disable this unittest temporarily # disable this unittest temporarily
list(REMOVE_ITEM TEST_OPS test_imperative_data_loader_exception) list(REMOVE_ITEM TEST_OPS test_imperative_data_loader_exception)
list(REMOVE_ITEM TEST_OPS test_sampling_id_op) list(REMOVE_ITEM TEST_OPS test_sampling_id_op)
list(REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_isolated_var)
if (APPLE OR WIN32) if (APPLE OR WIN32)
list(REMOVE_ITEM TEST_OPS test_dataset) list(REMOVE_ITEM TEST_OPS test_dataset)
...@@ -587,6 +586,7 @@ set_tests_properties(test_parallel_executor_crf test_sync_batch_norm_op test_inp ...@@ -587,6 +586,7 @@ set_tests_properties(test_parallel_executor_crf test_sync_batch_norm_op test_inp
test_parallel_executor_seresnext_with_reduce_gpu test_parallel_executor_seresnext_with_reduce_gpu
test_parallel_executor_seresnext_with_fuse_all_reduce_gpu test_parallel_executor_seresnext_with_fuse_all_reduce_gpu
test_parallel_executor_profiler test_parallel_executor_profiler
test_parallel_executor_fetch_isolated_var
PROPERTIES LABELS "RUN_TYPE=DIST") PROPERTIES LABELS "RUN_TYPE=DIST")
if(NOT WIN32 AND NOT APPLE) if(NOT WIN32 AND NOT APPLE)
......
...@@ -16,6 +16,7 @@ import unittest ...@@ -16,6 +16,7 @@ import unittest
import numpy as np import numpy as np
import six import six
import paddle.fluid as fluid import paddle.fluid as fluid
import paddle
def enable_parallel_ssa_executor(enabled=True): def enable_parallel_ssa_executor(enabled=True):
...@@ -57,6 +58,7 @@ class TestParallelExecutorFetchIsolatedVarBase(unittest.TestCase): ...@@ -57,6 +58,7 @@ class TestParallelExecutorFetchIsolatedVarBase(unittest.TestCase):
def run_impl(self, use_gpu, dev_cnt, is_training, use_experimental_executor, def run_impl(self, use_gpu, dev_cnt, is_training, use_experimental_executor,
use_parallel_ssa_executor): use_parallel_ssa_executor):
paddle.enable_static()
enable_parallel_ssa_executor(use_parallel_ssa_executor) enable_parallel_ssa_executor(use_parallel_ssa_executor)
if fluid.is_compiled_with_cuda(): if fluid.is_compiled_with_cuda():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册