forked from mindspore-Ecosystem/mindspore
add dropout3d st.
This commit is contained in:
parent
24c53efb49
commit
b6822c835b
|
@ -66,42 +66,42 @@ def dropout_3d(keep_prob, nptype):
|
|||
assert x_np.shape == output_np.shape == mask_np.shape
|
||||
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_float16():
|
||||
dropout_3d(0.0, np.float16)
|
||||
dropout_3d(1.0, np.float16)
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_float32():
|
||||
dropout_3d(0.0, np.float32)
|
||||
dropout_3d(1.0, np.float32)
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_int8():
|
||||
dropout_3d(0.0, np.int8)
|
||||
dropout_3d(1.0, np.int8)
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_int16():
|
||||
dropout_3d(0.0, np.int16)
|
||||
dropout_3d(1.0, np.int16)
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_int32():
|
||||
dropout_3d(0.0, np.int32)
|
||||
dropout_3d(1.0, np.int32)
|
||||
|
||||
@pytest.mark.level2
|
||||
@pytest.mark.level0
|
||||
@pytest.mark.platform_x86_gpu_training
|
||||
@pytest.mark.env_onecard
|
||||
def test_dropout3d_int64():
|
||||
|
|
Loading…
Reference in New Issue