prune less effective GPU testcases to level1

This commit is contained in:
yanghaoran 2021-08-27 16:11:58 +08:00
parent da818525c8
commit 50c5a61235
45 changed files with 309 additions and 309 deletions

View File

@ -145,7 +145,7 @@ def test_add_float32():
@pytest.mark.skip(reason='0 in shape is not support')
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_float16():
@ -153,14 +153,14 @@ def test_add_float16():
@pytest.mark.skip(reason='0 in shape is not support')
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_int64():
add(np.int64)
@pytest.mark.skip(reason='0 in shape is not support')
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_int32():
@ -235,19 +235,19 @@ def test_add_dynamic_float64():
def test_add_dynamic_float32():
add_dynamic(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_dynamic_float16():
add_dynamic(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_dynamic_int64():
add_dynamic(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_add_dynamic_int32():

View File

@ -71,7 +71,7 @@ def test_cast():
assert type1 == 'float32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast1():
@ -88,7 +88,7 @@ def test_cast1():
type1 = output[1].asnumpy().dtype
assert type1 == 'float32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast2():
@ -105,7 +105,7 @@ def test_cast2():
type1 = output[1].asnumpy().dtype
assert type1 == 'float64'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast3():
@ -122,7 +122,7 @@ def test_cast3():
type1 = output[1].asnumpy().dtype
assert type1 == 'int32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast4():
@ -139,7 +139,7 @@ def test_cast4():
type1 = output[1].asnumpy().dtype
assert type1 == 'int8'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast5():
@ -156,7 +156,7 @@ def test_cast5():
type1 = output[1].asnumpy().dtype
assert type1 == 'bool'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast6():
@ -173,7 +173,7 @@ def test_cast6():
type1 = output[1].asnumpy().dtype
assert type1 == 'float32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast7():
@ -190,7 +190,7 @@ def test_cast7():
type1 = output[1].asnumpy().dtype
assert type1 == 'float16'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast8():
@ -207,7 +207,7 @@ def test_cast8():
type1 = output[1].asnumpy().dtype
assert type1 == 'int16'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast9():
@ -241,7 +241,7 @@ def test_cast10():
type1 = output[1].asnumpy().dtype
assert type1 == 'float64'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast11():
@ -258,7 +258,7 @@ def test_cast11():
type1 = output[1].asnumpy().dtype
assert type1 == 'int32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast12():
@ -275,7 +275,7 @@ def test_cast12():
type1 = output[1].asnumpy().dtype
assert type1 == 'float32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast13():
@ -309,7 +309,7 @@ def test_cast14():
type1 = output[1].asnumpy().dtype
assert type1 == 'float32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast15():
@ -326,7 +326,7 @@ def test_cast15():
type1 = output[1].asnumpy().dtype
assert type1 == 'int32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast16():
@ -343,7 +343,7 @@ def test_cast16():
type1 = output[1].asnumpy().dtype
assert type1 == 'float64'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast17():
@ -360,7 +360,7 @@ def test_cast17():
type1 = output[1].asnumpy().dtype
assert type1 == 'float16'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast18():
@ -377,7 +377,7 @@ def test_cast18():
type1 = output[1].asnumpy().dtype
assert type1 == 'float16'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast19():
@ -394,7 +394,7 @@ def test_cast19():
type1 = output[1].asnumpy().dtype
assert type1 == 'bool'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast20():
@ -411,7 +411,7 @@ def test_cast20():
type1 = output[1].asnumpy().dtype
assert type1 == 'bool'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast21():
@ -428,7 +428,7 @@ def test_cast21():
type1 = output[1].asnumpy().dtype
assert type1 == 'bool'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast22():
@ -445,7 +445,7 @@ def test_cast22():
type1 = output[1].asnumpy().dtype
assert type1 == 'bool'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast23():
@ -462,7 +462,7 @@ def test_cast23():
type1 = output[1].asnumpy().dtype
assert type1 == 'float16'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast24():
@ -479,7 +479,7 @@ def test_cast24():
type1 = output[1].asnumpy().dtype
assert type1 == 'int32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast25():
@ -496,7 +496,7 @@ def test_cast25():
type1 = output[1].asnumpy().dtype
assert type1 == 'int8'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast26():
@ -513,7 +513,7 @@ def test_cast26():
type1 = output[1].asnumpy().dtype
assert type1 == 'float64'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast27():
@ -530,7 +530,7 @@ def test_cast27():
type1 = output[1].asnumpy().dtype
assert type1 == 'uint64'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast28():
@ -564,7 +564,7 @@ def test_cast29():
type1 = output[1].asnumpy().dtype
assert type1 == 'uint8'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast30():
@ -581,7 +581,7 @@ def test_cast30():
type1 = output[1].asnumpy().dtype
assert type1 == 'uint32'
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cast31():

View File

@ -59,13 +59,13 @@ def test_check_valid_float32():
def test_check_valid_float16():
check_valid(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_check_valid_int16():
check_valid(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_check_valid_uint8():

View File

@ -63,19 +63,19 @@ def test_axis32_float64():
def test_axis32_float32():
axis32(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis32_int16():
axis32(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis32_uint8():
axis32(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis32_bool():
@ -124,7 +124,7 @@ def test_axis43_float64():
def test_axis43_float32():
axis43(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis43_int16():
@ -136,7 +136,7 @@ def test_axis43_int16():
def test_axis43_uint8():
axis43(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis43_bool():
@ -179,7 +179,7 @@ def test_axis21_float64():
def test_axis21_float32():
axis21(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis21_int16():
@ -191,7 +191,7 @@ def test_axis21_int16():
def test_axis21_uint8():
axis21(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_axis21_bool():
@ -237,19 +237,19 @@ def test_concat_3i_float64():
def test_concat_3i_float32():
concat_3i(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_3i_int16():
concat_3i(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_3i_uint8():
concat_3i(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_3i_bool():
@ -310,19 +310,19 @@ def test_concat_4i_float64():
def test_concat_4i_float32():
concat_4i(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_4i_int16():
concat_4i(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_4i_uint8():
concat_4i(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_concat_4i_bool():

View File

@ -29,13 +29,13 @@ def cos(nptype):
output_np = np.cos(x_np)
assert np.allclose(output_ms.asnumpy(), output_np)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cos_float16():
cos(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cos_float32():

View File

@ -30,7 +30,7 @@ class NetCropAndResize(nn.Cell):
return self.op(image, boxes, box_index, channel)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_int8_bilinear(datatype=np.int8):
@ -68,7 +68,7 @@ def test_crop_and_resize_int8_bilinear(datatype=np.int8):
assert np.all(abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_int16_nearest(datatype=np.int16):
@ -106,7 +106,7 @@ def test_crop_and_resize_int16_nearest(datatype=np.int16):
assert np.all(abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_int32_bilinear_v2(datatype=np.int32):
@ -145,7 +145,7 @@ def test_crop_and_resize_int32_bilinear_v2(datatype=np.int32):
diff = output_ms - expected_output
assert np.all(abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_float16_nearest(datatype=np.float16):
@ -337,7 +337,7 @@ def test_crop_and_resize_int64_bilinearv2(datatype=np.int64):
assert np.all(abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_uint8_nearest(datatype=np.uint8):
@ -375,7 +375,7 @@ def test_crop_and_resize_uint8_nearest(datatype=np.uint8):
diff = output_ms - expected_output
assert np.all(abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_crop_and_resize_uint16_bilinear(datatype=np.uint16):

View File

@ -132,13 +132,13 @@ def cum_prod(nptype):
def test_cum_prod_uint8():
cum_prod(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cum_prod_int8():
cum_prod(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cum_prod_int32():

View File

@ -126,7 +126,7 @@ def cum_sum(nptype):
assert np.all(diff6 < error6)
assert output[6].shape == expect6.shape
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cum_sum_uint8():
@ -138,7 +138,7 @@ def test_cum_sum_uint8():
def test_cum_sum_int8():
cum_sum(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_cum_sum_int32():

View File

@ -87,49 +87,49 @@ def test_depthtospace_graph_float32():
def test_depthtospace_graph_float16():
DepthToSpace(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_int32():
DepthToSpace(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_int64():
DepthToSpace(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_int8():
DepthToSpace(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_int16():
DepthToSpace(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_uint8():
DepthToSpace(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_uint16():
DepthToSpace(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_uint32():
DepthToSpace(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_graph_uint64():
@ -147,49 +147,49 @@ def test_depthtospace_pynative_float32():
def test_depthtospace_pynative_float16():
DepthToSpace_pynative(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_int32():
DepthToSpace_pynative(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_int64():
DepthToSpace_pynative(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_int8():
DepthToSpace_pynative(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_int16():
DepthToSpace_pynative(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_uint8():
DepthToSpace_pynative(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_uint16():
DepthToSpace_pynative(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_uint32():
DepthToSpace_pynative(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_depthtospace_pynative_uint64():

View File

@ -102,19 +102,19 @@ def test_div_float64():
def test_div_float32():
div(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_div_float16():
div(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_div_int64():
div(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_div_int32():

View File

@ -60,56 +60,56 @@ def dtype_dynamic_with_testcase(mstype):
assert mstype == net(x)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_bool():
dtype_with_testcase(ms.bool_)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_int8():
dtype_with_testcase(ms.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_uint8():
dtype_with_testcase(ms.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_int16():
dtype_with_testcase(ms.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_uint16():
dtype_with_testcase(ms.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_int32():
dtype_with_testcase(ms.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_int64():
dtype_with_testcase(ms.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dtype_float16():
@ -130,56 +130,56 @@ def test_dtype_float64():
dtype_with_testcase(ms.float64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_bool():
dtype_dynamic_with_testcase(ms.bool_)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_int8():
dtype_dynamic_with_testcase(ms.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_uint8():
dtype_dynamic_with_testcase(ms.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_int16():
dtype_dynamic_with_testcase(ms.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_uint16():
dtype_dynamic_with_testcase(ms.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_int32():
dtype_dynamic_with_testcase(ms.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_int64():
dtype_dynamic_with_testcase(ms.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_dtype_float16():

View File

@ -92,7 +92,7 @@ def dynamic_shape(np_type):
expected = np.array(shape)
np.testing.assert_array_equal(ms_out, expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_shape_int32():
@ -110,7 +110,7 @@ def test_dynamic_shape_float16():
def test_dynamic_shape_float32():
dynamic_shape(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_dynamic_shape_bool():

View File

@ -42,7 +42,7 @@ class NetDynamic(nn.Cell):
return self.expand_dims(x_conv, -1)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_bool():
@ -53,7 +53,7 @@ def test_net_bool():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_int8():
@ -64,7 +64,7 @@ def test_net_int8():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_uint8():
@ -75,7 +75,7 @@ def test_net_uint8():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_int16():
@ -86,7 +86,7 @@ def test_net_int16():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_int32():
@ -97,7 +97,7 @@ def test_net_int32():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_int64():
@ -108,7 +108,7 @@ def test_net_int64():
assert np.all(output.asnumpy() == np.expand_dims(x, -1))
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_net_float16():

View File

@ -56,7 +56,7 @@ def test_fake_quant_perchannel1():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel2():
@ -98,7 +98,7 @@ def test_fake_quant_perchannel3():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel4():
@ -120,7 +120,7 @@ def test_fake_quant_perchannel4():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel5():
@ -141,7 +141,7 @@ def test_fake_quant_perchannel5():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel6():
@ -163,7 +163,7 @@ def test_fake_quant_perchannel6():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel7():
@ -185,7 +185,7 @@ def test_fake_quant_perchannel7():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel8():
@ -208,7 +208,7 @@ def test_fake_quant_perchannel8():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel9():
@ -231,7 +231,7 @@ def test_fake_quant_perchannel9():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel10():
@ -260,7 +260,7 @@ def test_fake_quant_perchannel10():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel11():
@ -287,7 +287,7 @@ def test_fake_quant_perchannel11():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel12():
@ -316,7 +316,7 @@ def test_fake_quant_perchannel12():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel13():
@ -345,7 +345,7 @@ def test_fake_quant_perchannel13():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel14():
@ -366,7 +366,7 @@ def test_fake_quant_perchannel14():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel15():
@ -429,7 +429,7 @@ def test_fake_quant_perchannel17():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel18():
@ -451,7 +451,7 @@ def test_fake_quant_perchannel18():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel19():
@ -473,7 +473,7 @@ def test_fake_quant_perchannel19():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel20():
@ -495,7 +495,7 @@ def test_fake_quant_perchannel20():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel21():
@ -517,7 +517,7 @@ def test_fake_quant_perchannel21():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel22():
@ -544,7 +544,7 @@ def test_fake_quant_perchannel22():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_perchannel23():

View File

@ -33,7 +33,7 @@ class Net(nn.Cell):
return self.op(dout, x, minq, maxq)
@pytest.mark.level0
@pytest.mark.level
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad1():
@ -55,7 +55,7 @@ def test_fake_quant_grad1():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad2():
@ -77,7 +77,7 @@ def test_fake_quant_grad2():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad3():
@ -99,7 +99,7 @@ def test_fake_quant_grad3():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad4():
@ -121,7 +121,7 @@ def test_fake_quant_grad4():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad5():
@ -143,7 +143,7 @@ def test_fake_quant_grad5():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad6():
@ -169,7 +169,7 @@ def test_fake_quant_grad6():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad7():
@ -195,7 +195,7 @@ def test_fake_quant_grad7():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad8():
@ -221,7 +221,7 @@ def test_fake_quant_grad8():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad9():
@ -247,7 +247,7 @@ def test_fake_quant_grad9():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad10():
@ -279,7 +279,7 @@ def test_fake_quant_grad10():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad11():

View File

@ -64,7 +64,7 @@ def test_fake_quant1():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant2():
@ -86,7 +86,7 @@ def test_fake_quant2():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant3():
@ -106,7 +106,7 @@ def test_fake_quant3():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant4():
@ -126,7 +126,7 @@ def test_fake_quant4():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant5():
@ -146,7 +146,7 @@ def test_fake_quant5():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant6():
@ -166,7 +166,7 @@ def test_fake_quant6():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant7():
@ -186,7 +186,7 @@ def test_fake_quant7():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant8():
@ -206,7 +206,7 @@ def test_fake_quant8():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant9():
@ -226,7 +226,7 @@ def test_fake_quant9():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant10():
@ -246,7 +246,7 @@ def test_fake_quant10():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant11():
@ -266,7 +266,7 @@ def test_fake_quant11():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant12():
@ -286,7 +286,7 @@ def test_fake_quant12():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant13():
@ -306,7 +306,7 @@ def test_fake_quant13():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant14():
@ -326,7 +326,7 @@ def test_fake_quant14():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant15():

View File

@ -53,7 +53,7 @@ def test_fake_quant_grad1():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad2():
@ -74,7 +74,7 @@ def test_fake_quant_grad2():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad3():
@ -95,7 +95,7 @@ def test_fake_quant_grad3():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad4():
@ -116,7 +116,7 @@ def test_fake_quant_grad4():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad5():
@ -137,7 +137,7 @@ def test_fake_quant_grad5():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad6():
@ -158,7 +158,7 @@ def test_fake_quant_grad6():
assert np.all(np.abs(diff) < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_fake_quant_grad7():

View File

@ -1227,7 +1227,7 @@ def test_gather1_int32():
assert np.all(-diff < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gather1_int16():
@ -1272,7 +1272,7 @@ def test_gather1_int16():
assert np.all(-diff < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gather1_int8():
@ -1317,7 +1317,7 @@ def test_gather1_int8():
assert np.all(-diff < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gather1_uint8():
@ -1362,7 +1362,7 @@ def test_gather1_uint8():
assert np.all(-diff < error)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gather1_bool():

View File

@ -52,25 +52,25 @@ def test_gathernd0_float64():
def test_gathernd0_float32():
gathernd0(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd0_float16():
gathernd0(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd0_int32():
gathernd0(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd0_int16():
gathernd0(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd0_uint8():
@ -128,25 +128,25 @@ def test_gathernd1_float64():
def test_gathernd1_float32():
gathernd1(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd1_float16():
gathernd1(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd1_int32():
gathernd1(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd1_int16():
gathernd1(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd1_uint8():
@ -187,31 +187,31 @@ def test_gathernd2_float64():
def test_gathernd2_float32():
gathernd2(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd2_float16():
gathernd2(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd2_int32():
gathernd2(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd2_int16():
gathernd2(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd2_uint8():
gathernd2(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gathernd_bool():

View File

@ -86,7 +86,7 @@ def gpu_convert_to_dynamic_shape_int(dtype):
ms_out = gpu_convert_to_dynamic_shape(x)
np.testing.assert_array_equal(x, ms_out)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_bool():
@ -97,7 +97,7 @@ def test_gpu_convert_to_dynamic_shape_bool():
ms_out = gpu_convert_to_dynamic_shape(x)
np.testing.assert_array_equal(x, ms_out)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_float16():
@ -115,49 +115,49 @@ def test_gpu_convert_to_dynamic_shape_float32():
def test_gpu_convert_to_dynamic_shape_float64():
gpu_convert_to_dynamic_shape_float(np.float64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_int8():
gpu_convert_to_dynamic_shape_int(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_int16():
gpu_convert_to_dynamic_shape_int(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_int32():
gpu_convert_to_dynamic_shape_int(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_int64():
gpu_convert_to_dynamic_shape_int(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_uint8():
gpu_convert_to_dynamic_shape_int(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_uint16():
gpu_convert_to_dynamic_shape_int(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_uint32():
gpu_convert_to_dynamic_shape_int(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_gpu_convert_to_dynamic_shape_uint64():

View File

@ -62,70 +62,70 @@ def test_identity_float32():
generate_testcases(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_float16():
generate_testcases(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_uint64():
generate_testcases(np.uint64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_int64():
generate_testcases(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_uint32():
generate_testcases(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_int32():
generate_testcases(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_uint16():
generate_testcases(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_int16():
generate_testcases(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_uint8():
generate_testcases(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_int8():
generate_testcases(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_identity_bool():

View File

@ -140,7 +140,7 @@ def test_index_add_int32():
assert (output.asnumpy() == expect).all()
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_int8():
@ -160,7 +160,7 @@ def test_index_add_int8():
assert (output.asnumpy() == expect).all()
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_uint8():
@ -316,7 +316,7 @@ def test_index_add_grad_float32():
index_add_grad_with_type(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_grad_float16():
@ -326,7 +326,7 @@ def test_index_add_grad_float16():
index_add_grad_with_type(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_grad_int32():
@ -346,7 +346,7 @@ def test_index_add_grad_int16():
index_add_grad_with_type(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_grad_int8():
@ -356,7 +356,7 @@ def test_index_add_grad_int8():
index_add_grad_with_type(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_index_add_grad_uint8():

View File

@ -146,7 +146,7 @@ def test_layernormgradgrad0():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=3e-3, atol=3e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad1():
@ -222,7 +222,7 @@ def test_layernormgradgrad2():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=3e-3, atol=3e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad3():
@ -260,7 +260,7 @@ def test_layernormgradgrad3():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=3e-3, atol=3e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad4():
@ -372,7 +372,7 @@ def test_layernormgradgrad6():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=5e-3, atol=5e-1)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad7():
@ -410,7 +410,7 @@ def test_layernormgradgrad7():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=5e-3, atol=5e-1)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad8():
@ -447,7 +447,7 @@ def test_layernormgradgrad8():
assert np.allclose(d_dy_ms.asnumpy(), d_dy_np, rtol=5e-3, atol=5e-1)
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=5e-3, atol=5e-1)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad9():
@ -485,7 +485,7 @@ def test_layernormgradgrad9():
assert np.allclose(d_gamma_ms.asnumpy(), d_gamma_np, rtol=5e-3, atol=5e-1)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgradgrad10():

View File

@ -89,7 +89,7 @@ def test_layernormgrad0():
assert np.allclose(db_ms.asnumpy(), db_np, rtol=1e-6, atol=1e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgrad1():
@ -143,7 +143,7 @@ def test_layernormgrad2():
assert np.allclose(db_ms.asnumpy(), db_np, rtol=1e-6, atol=1e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgrad3():
@ -169,7 +169,7 @@ def test_layernormgrad3():
assert np.allclose(db_ms.asnumpy(), db_np, rtol=1e-6, atol=1e-3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_layernormgrad4():

View File

@ -95,7 +95,7 @@ def custom_loss(nptype):
diff = test_output - output_data * 2.0
assert np.all(abs(diff.asnumpy()) < error_range)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_custom_loss_float16():

View File

@ -140,19 +140,19 @@ def test_mul_float64():
def test_mul_float32():
mul(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_float16():
mul(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_int64():
mul(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_int32():
@ -211,19 +211,19 @@ def test_mul_dynamic_float64():
def test_mul_dynamic_float32():
mul_dynamic(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_dynamic_float16():
mul_dynamic(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_dynamic_int64():
mul_dynamic(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_mul_dynamic_int32():

View File

@ -63,7 +63,7 @@ def neg(nptype):
assert np.all(diff1 < error1)
assert output1.shape == expect1.shape
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_neg_float16():

View File

@ -101,25 +101,25 @@ def test_stack_graph_float32():
def test_stack_graph_float16():
stack(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_graph_int32():
stack(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_graph_int16():
stack(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_graph_uint8():
stack(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_graph_bool():
@ -137,25 +137,25 @@ def test_stack_pynative_float32():
def test_stack_pynative_float16():
stack_pynative(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_pynative_int32():
stack_pynative(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_pynative_int16():
stack_pynative(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_pynative_uint8():
stack_pynative(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_stack_pynative_bool():

View File

@ -51,37 +51,37 @@ def randperm(max_length, pad, dtype, n):
print(output.dtype)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_int8():
randperm(8, -1, mindspore.int8, 5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_int16():
randperm(3, 0, mindspore.int16, 3)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_int32():
randperm(4, -6, mindspore.int32, 2)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_int64():
randperm(12, 128, mindspore.int64, 4)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_uint8():
randperm(8, 1, mindspore.uint8, 5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_randperm_uint16():

View File

@ -66,7 +66,7 @@ def relu_grad_grad_base(dtype, loss):
assert np.allclose(dgrad_ms.asnumpy(), dgrad_np, loss, loss)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_relu_grad_grad_float16():
@ -87,28 +87,28 @@ def test_relu_grad_grad_float64():
relu_grad_grad_base(np.float64, 1e-5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_relu_grad_grad_int8():
relu_grad_grad_base(np.int8, 1e-5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_relu_grad_grad_int16():
relu_grad_grad_base(np.int16, 1e-5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_relu_grad_grad_int32():
relu_grad_grad_base(np.int32, 1e-5)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_relu_grad_grad_int64():

View File

@ -107,19 +107,19 @@ def test_reshape_float():
def test_reshape_float16():
reshape(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reshape_int32():
reshape(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reshape_uint8():
reshape(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reshape_bool():

View File

@ -69,28 +69,28 @@ def test_reverse_v2_float32():
reverse_v2_1d(np.float32)
reverse_v2_3d(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reverse_v2_uint8():
reverse_v2_1d(np.uint8)
reverse_v2_3d(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reverse_v2_int16():
reverse_v2_1d(np.int16)
reverse_v2_3d(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reverse_v2_int32():
reverse_v2_1d(np.int32)
reverse_v2_3d(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_reverse_v2_int64():

View File

@ -29,7 +29,7 @@ def sin(nptype):
output_np = np.sin(x_np)
assert np.allclose(output_ms.asnumpy(), output_np)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sin_float16():

View File

@ -76,49 +76,49 @@ def test_spacetodepth_graph_float32():
def test_spacetodepth_graph_float16():
SpaceToDepth(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_int32():
SpaceToDepth(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_int64():
SpaceToDepth(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_int8():
SpaceToDepth(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_int16():
SpaceToDepth(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_uint8():
SpaceToDepth(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_uint16():
SpaceToDepth(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_uint32():
SpaceToDepth(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_graph_uint64():
@ -136,13 +136,13 @@ def test_spacetodepth_pynative_float32():
def test_spacetodepth_pynative_float16():
SpaceToDepth_pynative(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_int32():
SpaceToDepth_pynative(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_int64():
@ -160,25 +160,25 @@ def test_spacetodepth_pynative_int8():
def test_spacetodepth_pynative_int16():
SpaceToDepth_pynative(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_uint8():
SpaceToDepth_pynative(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_uint16():
SpaceToDepth_pynative(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_uint32():
SpaceToDepth_pynative(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_spacetodepth_pynative_uint64():

View File

@ -57,7 +57,7 @@ def split_basic(nptype):
assert (out.asnumpy() == x[i]).all()
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_split_basic_float16():
@ -78,28 +78,28 @@ def test_split_basic_float64():
split_basic(np.float64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_split_basic_int32():
split_basic(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_split_basic_uint32():
split_basic(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_split_basic_int64():
split_basic(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_split_basic_bool():

View File

@ -29,7 +29,7 @@ def sqrt(nptype):
output_np = np.sqrt(x_np)
assert np.allclose(output_ms.asnumpy(), output_np)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sqrt_float16():

View File

@ -38,55 +38,55 @@ def squeeze(nptype):
output = net(Tensor(x))
assert np.all(output.asnumpy() == x.squeeze())
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_bool():
squeeze(np.bool)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_uint8():
squeeze(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_uint16():
squeeze(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_uint32():
squeeze(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_int8():
squeeze(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_int16():
squeeze(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_int32():
squeeze(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_int64():
squeeze(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_squeeze_float16():

View File

@ -114,25 +114,25 @@ def test_strided_slice_float64():
def test_strided_slice_float32():
strided_slice(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_float16():
strided_slice(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_int64():
strided_slice(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_int32():
strided_slice(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_int16():
@ -144,31 +144,31 @@ def test_strided_slice_int16():
def test_strided_slice_int8():
strided_slice(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_uint64():
strided_slice(np.uint64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_uint32():
strided_slice(np.uint32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_uint16():
strided_slice(np.uint16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_uint8():
strided_slice(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_strided_slice_bool():

View File

@ -153,13 +153,13 @@ def test_sub_float32():
def test_sub_float16():
sub(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sub_int64():
sub(np.int64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sub_int32():

View File

@ -86,19 +86,19 @@ def test_scatter_float16():
def test_scatter_float32():
scatter(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_uint8():
scatter_unsigned(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int8():
scatter(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int32():

View File

@ -86,19 +86,19 @@ def test_scatter_float16():
def test_scatter_float32():
scatter(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_uint8():
scatter_unsigned(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int8():
scatter(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int32():

View File

@ -86,19 +86,19 @@ def test_scatter_float16():
def test_scatter_float32():
scatter(np.float32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_uint8():
scatter_unsigned(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int8():
scatter(np.int8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_scatter_int32():

View File

@ -62,7 +62,7 @@ def ms_tile(nptype):
ms_output = tile_net(mul_2).asnumpy()
np.testing.assert_array_equal(ms_output, np_expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_tile_float16():
@ -80,19 +80,19 @@ def test_tile_float32():
def test_tile_float64():
ms_tile(np.float64)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_tile_int16():
ms_tile(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_tile_int32():
ms_tile(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_tile_int64():

View File

@ -105,28 +105,28 @@ def test_unstack_graph_float16():
unstack(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_graph_int32():
unstack(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_graph_int16():
unstack(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_graph_uint8():
unstack(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_graph_bool():
@ -147,28 +147,28 @@ def test_unstack_pynative_float16():
unstack_pynative(np.float16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_pynative_int32():
unstack_pynative(np.int32)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_pynative_int16():
unstack_pynative(np.int16)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_pynative_uint8():
unstack_pynative(np.uint8)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_unstack_pynative_bool():

View File

@ -90,7 +90,7 @@ def zeros_like_dynamic(x):
net = ZerosLikeDynamicNet()
return net(x)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_zeros_like_dynamic_bool():
@ -99,7 +99,7 @@ def test_zeros_like_dynamic_bool():
expected = np.zeros([3, 4, 1, 2, 5])
np.testing.assert_array_equal(output.asnumpy(), expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_zeros_like_dynamic_int8():
@ -108,7 +108,7 @@ def test_zeros_like_dynamic_int8():
expected = np.zeros([1, 4, 1, 6])
np.testing.assert_array_equal(output.asnumpy(), expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_zeros_like_dynamic_uint8():
@ -117,7 +117,7 @@ def test_zeros_like_dynamic_uint8():
expected = np.zeros([3, 2, 5])
np.testing.assert_array_equal(output.asnumpy(), expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_zeros_like_dynamic_int32():
@ -126,7 +126,7 @@ def test_zeros_like_dynamic_int32():
expected = np.zeros([2, 2, 2, 2])
np.testing.assert_array_equal(output.asnumpy(), expected)
@pytest.mark.level0
@pytest.mark.level1
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_zeros_like_dynamic_float16():