diff --git a/tests/st/auto_monad/test_auto_monad.py b/tests/st/auto_monad/test_auto_monad.py index 3711c83bd77..a3fa464eee4 100644 --- a/tests/st/auto_monad/test_auto_monad.py +++ b/tests/st/auto_monad/test_auto_monad.py @@ -1129,7 +1129,7 @@ def test_ctrl_if_by_while_and_while_in_first_if(): net(input_me_a) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/control/inner/test_100_if_after_if.py b/tests/st/control/inner/test_100_if_after_if.py index 619365f4a58..9d5bce7511d 100644 --- a/tests/st/control/inner/test_100_if_after_if.py +++ b/tests/st/control/inner/test_100_if_after_if.py @@ -190,7 +190,7 @@ def test_if_after_if_03(): control_flow_if_after_if(IfAfterIfNet3, x, y, expect1, expect2) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/control/inner/test_121_if_after_while_in_while.py b/tests/st/control/inner/test_121_if_after_while_in_while.py index 4e50a536180..31e94b3e4e1 100644 --- a/tests/st/control/inner/test_121_if_after_while_in_while.py +++ b/tests/st/control/inner/test_121_if_after_while_in_while.py @@ -127,7 +127,7 @@ class BackwardNetNoAssign(nn.Cell): # This test case has a problem of evaluator endless loop. -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/inner/test_122_if_after_while_in_for.py b/tests/st/control/inner/test_122_if_after_while_in_for.py index 4b8dbc476eb..1d22044a586 100644 --- a/tests/st/control/inner/test_122_if_after_while_in_for.py +++ b/tests/st/control/inner/test_122_if_after_while_in_for.py @@ -121,7 +121,7 @@ class BackwardNetNoAssign(nn.Cell): return grads -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/inner/test_210_while_after_if_in_if.py b/tests/st/control/inner/test_210_while_after_if_in_if.py index cf0c5d1cc2a..2e144ccd5bf 100644 --- a/tests/st/control/inner/test_210_while_after_if_in_if.py +++ b/tests/st/control/inner/test_210_while_after_if_in_if.py @@ -74,7 +74,7 @@ def test_forward(): assert graph_mode_out == (Tensor(np.array(30), mstype.int32), Tensor(np.array(10), mstype.int32)) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/inner/test_212_while_after_if_in_for.py b/tests/st/control/inner/test_212_while_after_if_in_for.py index 349d8a6d42a..83b8fb1522b 100644 --- a/tests/st/control/inner/test_212_while_after_if_in_for.py +++ b/tests/st/control/inner/test_212_while_after_if_in_for.py @@ -74,7 +74,7 @@ def test_forward(): assert graph_mode_out == (Tensor(np.array(60), mstype.int32), Tensor(np.array(10), mstype.int32)) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/inner/test_221_while_while_while.py b/tests/st/control/inner/test_221_while_while_while.py index ddd3e4be21d..1ae1135f934 100644 --- a/tests/st/control/inner/test_221_while_while_while.py +++ b/tests/st/control/inner/test_221_while_while_while.py @@ -73,7 +73,7 @@ def test_forward(): assert graph_out == Tensor(np.array(36), mstype.int32) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/inner/test_230_while_after_for_in_if.py b/tests/st/control/inner/test_230_while_after_for_in_if.py index e175d038df9..1ac1cf574ce 100644 --- a/tests/st/control/inner/test_230_while_after_for_in_if.py +++ b/tests/st/control/inner/test_230_while_after_for_in_if.py @@ -72,7 +72,7 @@ def test_forward(): assert graph_mode_out == (Tensor(np.array(9), mstype.int32), Tensor(np.array(7), mstype.int32)) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training diff --git a/tests/st/control/test_cont_grad.py b/tests/st/control/test_cont_grad.py index 45b4f7d6257..0477936e65a 100644 --- a/tests/st/control/test_cont_grad.py +++ b/tests/st/control/test_cont_grad.py @@ -474,7 +474,7 @@ def test_for_while_with_param_grad_with_const_branch(): assert np.allclose(graph_output[0].asnumpy(), expect, 0.0001, 0.0001) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_gpu_training @pytest.mark.env_onecard @@ -695,7 +695,7 @@ def test_while_with_param_basic_grad_two(): assert np.allclose(graph_output[1].asnumpy(), expect2, 0.0001, 0.0001) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_gpu_training @pytest.mark.env_onecard @@ -745,7 +745,7 @@ def test_while_with_param_basic_grad_three(): assert np.allclose(graph_output[2].asnumpy(), expect3, 0.0001, 0.0001) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_gpu_training @pytest.mark.env_onecard diff --git a/tests/st/control/test_if_by_if.py b/tests/st/control/test_if_by_if.py index 9ec53658541..dc2994b754d 100644 --- a/tests/st/control/test_if_by_if.py +++ b/tests/st/control/test_if_by_if.py @@ -11,7 +11,7 @@ import mindspore.ops.functional as F context.set_context(mode=context.GRAPH_MODE) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/control/test_while_mindir.py b/tests/st/control/test_while_mindir.py index efef343bc69..26746ede8e1 100644 --- a/tests/st/control/test_while_mindir.py +++ b/tests/st/control/test_while_mindir.py @@ -54,7 +54,7 @@ def test_single_while(): assert origin_out == outputs_after_load -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_arm_ascend_training @@ -131,7 +131,7 @@ def test_single_while_inline_load(): load(mindir_name) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_arm_ascend_training diff --git a/tests/st/dump/test_data_dump.py b/tests/st/dump/test_data_dump.py index 682b148c490..2e3822689bc 100644 --- a/tests/st/dump/test_data_dump.py +++ b/tests/st/dump/test_data_dump.py @@ -132,7 +132,7 @@ def test_e2e_dump(): run_e2e_dump() -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/networks/test_ascend_lenet_enable_rdr.py b/tests/st/networks/test_ascend_lenet_enable_rdr.py index cb0874d132a..3e536755ca7 100644 --- a/tests/st/networks/test_ascend_lenet_enable_rdr.py +++ b/tests/st/networks/test_ascend_lenet_enable_rdr.py @@ -23,7 +23,7 @@ def test_train(device_type): test_lenet() @security_off_wrap -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.env_onecard def test_train_with_Ascend(): diff --git a/tests/st/nontask_sink/test_lenet.py b/tests/st/nontask_sink/test_lenet.py index 47d775e2b84..45951c82a00 100644 --- a/tests/st/nontask_sink/test_lenet.py +++ b/tests/st/nontask_sink/test_lenet.py @@ -167,7 +167,7 @@ def test_ascend_lenet1(): assert loss_output.asnumpy() < 0.004 assert loss_output.asnumpy() > 0.003 -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/numpy_native/test_math_ops.py b/tests/st/numpy_native/test_math_ops.py index 008d71004f5..743f473454e 100644 --- a/tests/st/numpy_native/test_math_ops.py +++ b/tests/st/numpy_native/test_math_ops.py @@ -469,7 +469,7 @@ def onp_average(x): return a, b, c, d, e, f, g, h, i -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -1283,7 +1283,7 @@ def onp_kron(x, y): return onp.kron(x, y) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -1437,7 +1437,7 @@ def onp_diff(input_array): return a, b, c, d, e, f, g -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -1743,7 +1743,7 @@ def test_convolve(): match_all_arrays(mnp_res, onp_res) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training @@ -2003,7 +2003,7 @@ def test_mean(): run_multi_test(mnp_mean, onp_mean, test_case.scalars, error=3) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training diff --git a/tests/st/ops/graph_kernel/test_relu_grad.py b/tests/st/ops/graph_kernel/test_relu_grad.py index 9eefa06746c..22fc368ad10 100644 --- a/tests/st/ops/graph_kernel/test_relu_grad.py +++ b/tests/st/ops/graph_kernel/test_relu_grad.py @@ -57,7 +57,7 @@ def test_relu_grad_gpu(): test_relu_grad((12, 1), (12, 1), np.float16) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/pynative/test_function_staging.py b/tests/st/pynative/test_function_staging.py index a1bdbca2b93..cfea1cfd480 100644 --- a/tests/st/pynative/test_function_staging.py +++ b/tests/st/pynative/test_function_staging.py @@ -24,7 +24,7 @@ from mindspore.common.api import ms_function def setup_module(): context.set_context(mode=context.PYNATIVE_MODE, device_target="Ascend") -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard diff --git a/tests/st/pynative/test_tensor_getitem.py b/tests/st/pynative/test_tensor_getitem.py index deb63cd30b3..7c032b46160 100644 --- a/tests/st/pynative/test_tensor_getitem.py +++ b/tests/st/pynative/test_tensor_getitem.py @@ -1185,7 +1185,7 @@ def test_tensor_assign_bool_index_exception(): net4(Ta, u_scalar) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.platform_x86_gpu_training