Browse Source

move useless testcases from level0 to level1

tags/v1.5.0-rc1
yanghaoran 4 years ago
parent
commit
64d34104e5
25 changed files with 49 additions and 49 deletions
  1. +2
    -2
      tests/st/auto_monad/test_auto_monad.py
  2. +2
    -2
      tests/st/auto_monad/test_auto_monad_gpu.py
  3. +1
    -1
      tests/st/auto_monad/test_auto_monad_mindtester.py
  4. +1
    -1
      tests/st/auto_monad/test_auto_monad_momentum_loss.py
  5. +4
    -4
      tests/st/control/test_cont_grad.py
  6. +1
    -1
      tests/st/fusion/test_tbe_eltwise_fusion_1.py
  7. +1
    -1
      tests/st/fusion/test_tbe_eltwise_fusion_2.py
  8. +1
    -1
      tests/st/fusion/test_tbe_reduce_eltwise_fusion.py
  9. +1
    -1
      tests/st/host_device/test_host_device_lenet.py
  10. +1
    -1
      tests/st/networks/test_cpu_lenet.py
  11. +1
    -1
      tests/st/networks/test_gpu_lenet.py
  12. +1
    -1
      tests/st/ops/cpu/test_cpu_type.py
  13. +3
    -3
      tests/st/ops/cpu/test_dropout_op.py
  14. +3
    -3
      tests/st/ops/cpu/test_gather_d_grad_op.py
  15. +2
    -2
      tests/st/ops/cpu/test_lstm_op.py
  16. +1
    -1
      tests/st/ops/cpu/test_minimum_grad_op.py
  17. +1
    -1
      tests/st/ops/cpu/test_momentum_op.py
  18. +3
    -3
      tests/st/ops/cpu/test_tile_op.py
  19. +1
    -1
      tests/st/ops/gpu/test_error_on_dynamic_shape_input_op.py
  20. +1
    -1
      tests/st/ops/gpu/test_momentum_op.py
  21. +12
    -12
      tests/st/ops/gpu/test_print_op.py
  22. +1
    -1
      tests/st/probability/distribution/test_categorical_gpu.py
  23. +2
    -2
      tests/st/probability/distribution/test_cauchy_pynative.py
  24. +1
    -1
      tests/st/pynative/loss_scale/test_loss_scale.py
  25. +1
    -1
      tests/st/pynative/test_graph_param_transform.py

+ 2
- 2
tests/st/auto_monad/test_auto_monad.py View File

@@ -1042,7 +1042,7 @@ def test_variable_from_outer_graph():
np.testing.assert_array_equal(out.asnumpy(), expect.asnumpy())


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
@@ -1079,7 +1079,7 @@ def test_ctrl_while_by_while_and_if_in_first_while():
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


+ 2
- 2
tests/st/auto_monad/test_auto_monad_gpu.py View File

@@ -226,7 +226,7 @@ class SideEffectTwoAssignTwoAddnDependencyNet(Cell):
return grad_out


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_ctrl_while_by_while_and_if_in_first_while():
@@ -262,7 +262,7 @@ def test_ctrl_while_by_while_and_if_in_first_while():
net(input_me_a)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_ctrl_while_by_while_and_while_in_first_while():


+ 1
- 1
tests/st/auto_monad/test_auto_monad_mindtester.py View File

@@ -507,7 +507,7 @@ class SideEffectControlFlowAssignDependTwoIfNet(Cell):
return grad_out


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/auto_monad/test_auto_monad_momentum_loss.py View File

@@ -61,7 +61,7 @@ class MSELoss(Cell):
return self.reduce_mean(self.square(diff), get_axis(diff))


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 4
- 4
tests/st/control/test_cont_grad.py View File

@@ -1484,7 +1484,7 @@ def test_if_by_if_forward_all_const_branch():
assert np.allclose(graph_output.asnumpy(), pynative_output.asnumpy(), 0.0001, 0.0001)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
@@ -1520,7 +1520,7 @@ def test_if_const_grad():
net(a, b)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
@@ -1560,7 +1560,7 @@ def test_if_by_if_const_grad():
net(a, b)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
@@ -1594,7 +1594,7 @@ def test_while_const_grad():
net(a, b)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/fusion/test_tbe_eltwise_fusion_1.py View File

@@ -36,7 +36,7 @@ class Net(nn.Cell):
return x


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/fusion/test_tbe_eltwise_fusion_2.py View File

@@ -42,7 +42,7 @@ class Net(nn.Cell):
return x


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/fusion/test_tbe_reduce_eltwise_fusion.py View File

@@ -42,7 +42,7 @@ class Net(nn.Cell):
return x


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/host_device/test_host_device_lenet.py View File

@@ -78,7 +78,7 @@ def train(net, data, label):
assert np.all(diff < 1.e-6)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/networks/test_cpu_lenet.py View File

@@ -71,7 +71,7 @@ def train(net, data, label):
assert res
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_lenet():


+ 1
- 1
tests/st/networks/test_gpu_lenet.py View File

@@ -187,7 +187,7 @@ def create_dataset(data_path, batch_size=32, repeat_size=1,
return mnist_ds


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_train_and_eval_lenet():


+ 1
- 1
tests/st/ops/cpu/test_cpu_type.py View File

@@ -57,7 +57,7 @@ class Net2(nn.Cell):
return self.bias_add1(self.bias_add(x, b), c)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_bias_add2():


+ 3
- 3
tests/st/ops/cpu/test_dropout_op.py View File

@@ -33,7 +33,7 @@ class Net(nn.Cell):
return self.dropout(x)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net():
@@ -54,7 +54,7 @@ class Net1(nn.Cell):
return self.dropout(x)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net1():
@@ -75,7 +75,7 @@ class Net2(nn.Cell):
return self.dropout(x)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net2():


+ 3
- 3
tests/st/ops/cpu/test_gather_d_grad_op.py View File

@@ -46,7 +46,7 @@ class NetGatherDGrad(nn.Cell):
return self.grad(self.network)(inputx, index, output_grad)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_gatherd_grad_fp32():
@@ -64,7 +64,7 @@ def test_gatherd_grad_fp32():
print(output_grad.asnumpy())
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_gatherd_grad_fp16():
@@ -82,7 +82,7 @@ def test_gatherd_grad_fp16():
print(output_grad.asnumpy())
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_gatherd_grad_int32():


+ 2
- 2
tests/st/ops/cpu/test_lstm_op.py View File

@@ -254,7 +254,7 @@ class MultiLayerBiLstmNet(nn.Cell):
return self.lstm(self.x, (self.h, self.c))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_multi_layer_bilstm():
@@ -345,7 +345,7 @@ class Net(nn.Cell):
return self.lstm(self.x, (self.h, self.c))[0]
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_grad():


+ 1
- 1
tests/st/ops/cpu/test_minimum_grad_op.py View File

@@ -63,7 +63,7 @@ def gen_data(inputA_np, inputB_np, grad_=None):
return output


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_min_tensor_grad_4d():


+ 1
- 1
tests/st/ops/cpu/test_momentum_op.py View File

@@ -42,7 +42,7 @@ class MomentumNet(nn.Cell):
return output


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_momentum():


+ 3
- 3
tests/st/ops/cpu/test_tile_op.py View File

@@ -35,7 +35,7 @@ class Net(nn.Cell):
arr_x = np.array([[0], [1], [2], [3]]).astype(np.int32)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net():
@@ -48,7 +48,7 @@ def test_net():
arr_x = np.array([[0], [1], [2], [3]]).astype(np.float64)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net_float64():
@@ -61,7 +61,7 @@ def test_net_float64():
arr_x = np.array([[0], [1], [2], [3]]).astype(np.bool_)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_net_bool():


+ 1
- 1
tests/st/ops/gpu/test_error_on_dynamic_shape_input_op.py View File

@@ -46,7 +46,7 @@ def test_error_on_dynamic_shape_input_is_dynamic():
error_on_dynamic_shape_input.infer_shape([-1, -1, -1])
assert "Input is dynamically shaped" in str(info.value)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_error_on_dynamic_shape_input_not_dynamic():


+ 1
- 1
tests/st/ops/gpu/test_momentum_op.py View File

@@ -42,7 +42,7 @@ class NetMomentum(nn.Cell):
return output


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_momentum():


+ 12
- 12
tests/st/ops/gpu/test_print_op.py View File

@@ -118,84 +118,84 @@ def test_print_multiple_types():
net(x, y, z)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_bool():
print_testcase(np.bool)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_int8():
print_testcase(np.int8)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_int16():
print_testcase(np.int16)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_int32():
print_testcase(np.int32)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_int64():
print_testcase(np.int64)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_uint8():
print_testcase(np.uint8)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_uint16():
print_testcase(np.uint16)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_uint32():
print_testcase(np.uint32)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_uint64():
print_testcase(np.uint64)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_float16():
print_testcase(np.float16)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_float32():
print_testcase(np.float32)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_print_string():


+ 1
- 1
tests/st/probability/distribution/test_categorical_gpu.py View File

@@ -52,7 +52,7 @@ class CategoricalProb(nn.Cell):



@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_probability_categorical_prob_cdf_probs_none():


+ 2
- 2
tests/st/probability/distribution/test_cauchy_pynative.py View File

@@ -36,7 +36,7 @@ class CauchyMean(nn.Cell):



@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.env_onecard
def test_probability_cauchy_mean_loc_scale_rand_2_ndarray():
@@ -61,7 +61,7 @@ class CauchyProb(nn.Cell):
return out1, out2, out3, out4, out5, out6


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.env_onecard
def test_probability_cauchy_prob_cdf_loc_scale_rand_4_ndarray():


+ 1
- 1
tests/st/pynative/loss_scale/test_loss_scale.py View File

@@ -193,7 +193,7 @@ def test_loss_scale_fp16_lr_overflow_set_sense_scale():
assert output_1[0].asnumpy() == output_2[0].asnumpy()
assert output_1[1].asnumpy() == output_2[1].asnumpy() == True

@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


+ 1
- 1
tests/st/pynative/test_graph_param_transform.py View File

@@ -179,7 +179,7 @@ def test_parser_switch_layer_inputs_tuple():
assert np.allclose(goodout.asnumpy(), netout.asnumpy(), 0, 0)


@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard


Loading…
Cancel
Save