Browse Source

!16031 fix round op typos

From: @xcnick
Reviewed-by: @liangchenghui,@wuxuejian
Signed-off-by: @liangchenghui
tags/v1.3.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
88e1bf54b1
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      tests/st/ops/cpu/test_arithmetic_self_op.py
  2. +2
    -2
      tests/st/ops/gpu/test_round_op.py

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

@@ -153,6 +153,9 @@ def test_rint():
np.testing.assert_almost_equal(output.asnumpy(), expect_output)


@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_onecard
def test_round():
net = RoundNet()



+ 2
- 2
tests/st/ops/gpu/test_round_op.py View File

@@ -49,12 +49,12 @@ def generate_testcases(nptype):
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sign_float32():
def test_round_float32():
generate_testcases(np.float32)


@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_sign_float16():
def test_round_float16():
generate_testcases(np.float16)

Loading…
Cancel
Save