From 1f25913ea4d5213f0c85fe94101d17abb149565a Mon Sep 17 00:00:00 2001 From: hehongzhe <935062458@qq.com> Date: Fri, 19 Sep 2025 10:01:12 +0800 Subject: [PATCH] profiler delete host_sys --- tutorials/source_en/debug/profiler.md | 5 ++--- tutorials/source_zh_cn/debug/profiler.md | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tutorials/source_en/debug/profiler.md b/tutorials/source_en/debug/profiler.md index e265f2d6aa..6ee9801441 100644 --- a/tutorials/source_en/debug/profiler.md +++ b/tutorials/source_en/debug/profiler.md @@ -34,7 +34,7 @@ Sample as follows: ```python import mindspore -from mindspore.profiler import ProfilerLevel, ProfilerActivity, AicoreMetrics, HostSystem +from mindspore.profiler import ProfilerLevel, ProfilerActivity, AicoreMetrics # Define model training times steps = 15 @@ -48,8 +48,7 @@ experimental_config = mindspore.profiler._ExperimentalConfig( aic_metrics=AicoreMetrics.AiCoreNone, l2_cache=False, mstx=False, - data_simplification=False, - host_sys=[HostSystem.CPU, HostSystem.MEM] + data_simplification=False ) # Initialize profile diff --git a/tutorials/source_zh_cn/debug/profiler.md b/tutorials/source_zh_cn/debug/profiler.md index be8c4d9d51..8e679471a4 100644 --- a/tutorials/source_zh_cn/debug/profiler.md +++ b/tutorials/source_zh_cn/debug/profiler.md @@ -34,7 +34,7 @@ ```python import mindspore -from mindspore.profiler import ProfilerLevel, ProfilerActivity, AicoreMetrics, HostSystem +from mindspore.profiler import ProfilerLevel, ProfilerActivity, AicoreMetrics # 定义模型训练次数 steps = 15 @@ -48,8 +48,7 @@ experimental_config = mindspore.profiler._ExperimentalConfig( aic_metrics=AicoreMetrics.AiCoreNone, l2_cache=False, mstx=False, - data_simplification=False, - host_sys=[HostSystem.CPU, HostSystem.MEM] + data_simplification=False ) # 初始化profile -- Gitee