From 0e61cabb6860596e4f4927a4406a4abf94eb53a7 Mon Sep 17 00:00:00 2001 From: xcnick Date: Thu, 6 May 2021 22:44:21 +0800 Subject: [PATCH] fix round op typos --- tests/st/ops/cpu/test_arithmetic_self_op.py | 3 +++ tests/st/ops/gpu/test_round_op.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/st/ops/cpu/test_arithmetic_self_op.py b/tests/st/ops/cpu/test_arithmetic_self_op.py index 2f5bdb78fd6..3a5bef3594c 100644 --- a/tests/st/ops/cpu/test_arithmetic_self_op.py +++ b/tests/st/ops/cpu/test_arithmetic_self_op.py @@ -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() diff --git a/tests/st/ops/gpu/test_round_op.py b/tests/st/ops/gpu/test_round_op.py index b25cdd9650c..9b185ec40fa 100644 --- a/tests/st/ops/gpu/test_round_op.py +++ b/tests/st/ops/gpu/test_round_op.py @@ -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)