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
revert-28284-dev/pybind_version
wanghuancoder 4 years ago committed by GitHub
parent 571a63e7ec
commit 3ccc0a2f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
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
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):
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():

Loading…
Cancel
Save