diff --git a/tutorials/source_en/debug/profiler.md b/tutorials/source_en/debug/profiler.md index e265f2d6aa3a77f70b76964d0b18fda8e9301d5c..6ee9801441f30fadda1025daeb6c41a1247d694c 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 be8c4d9d51c27b5b9ca729d726cf40a9f90b2287..8e679471a4b3c51cdf0bbfe636cf4ad5e4c37625 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