From aefdfd8215546dc807acd991f6e18262f02834ef Mon Sep 17 00:00:00 2001 From: hbhu_bin Date: Wed, 15 Oct 2025 11:08:29 +0800 Subject: [PATCH] modify test dirs --- tests/st/backend_ascend/__init__.py | 0 tests/st/hardware/ascend/aclnn/test_aclnn_cache.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 tests/st/backend_ascend/__init__.py diff --git a/tests/st/backend_ascend/__init__.py b/tests/st/backend_ascend/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/st/hardware/ascend/aclnn/test_aclnn_cache.py b/tests/st/hardware/ascend/aclnn/test_aclnn_cache.py index 6a3bc58689b..a67172379f4 100644 --- a/tests/st/hardware/ascend/aclnn/test_aclnn_cache.py +++ b/tests/st/hardware/ascend/aclnn/test_aclnn_cache.py @@ -256,14 +256,14 @@ def test_aclnn_cache_memory_pyboost(): """ context.set_context(mode=mindspore.PYNATIVE_MODE, device_target="Ascend") net = SimpleNet2() - for i in range(1000): + for i in range(2000): dim1 = np.random.randint(1, 11) dim2 = np.random.randint(1000, 2000) dim3 = np.random.randint(20, 80) random_array = np.random.rand(dim1, dim2, dim3) x = mindspore.Tensor(random_array.astype(np.float32)) net(x) - if i % 100 == 0: + if i % 200 == 0: print(f'step {i}, memory usage: {psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MB') @arg_mark(plat_marks=['platform_ascend910b'], level_mark='level0', card_mark='onecard', essential_mark='essential') -- Gitee