forked from mindspore-Ecosystem/mindspore
!17514 add dropout3d st
From: @wangshuide2020 Reviewed-by: @liangchenghui,@wuxuejian Signed-off-by: @liangchenghui
This commit is contained in:
commit
8b942f5666
|
@ -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