From a23ec2ca00610e11be61da59e4808692c560f9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=B8=80=E8=88=AA?= Date: Sat, 30 Aug 2025 17:28:35 +0800 Subject: [PATCH] fix dryrun support scenarios --- tutorials/source_en/debug/dryrun.md | 1 + tutorials/source_zh_cn/debug/dryrun.md | 1 + 2 files changed, 2 insertions(+) diff --git a/tutorials/source_en/debug/dryrun.md b/tutorials/source_en/debug/dryrun.md index aedf213c62..2b424aa56f 100644 --- a/tutorials/source_en/debug/dryrun.md +++ b/tutorials/source_en/debug/dryrun.md @@ -18,6 +18,7 @@ Users can set the simulation level by enabling the environment variable `export > - This feature is for simulation execution and cannot obtain the correct output information of operators. In scenarios involving dynamic shapes in static graphs, there may be cases where the input shape of an operator depends on the output shape of the previous operator, making this feature unsuitable for such situations. > - In dynamic graph scenarios, the [mock interface](https://www.mindspore.cn/docs/en/master/api_python/mindspore.utils.html#mindspore.utils.dryrun.mock) needs to be used to manually adapt the script. +> - This feature only supports scenarios with jit_level=O0/O1 and does not support the GE backend. #### MS_SIMULATION_LEVEL=0 diff --git a/tutorials/source_zh_cn/debug/dryrun.md b/tutorials/source_zh_cn/debug/dryrun.md index cac90ebf9b..2caf88bca2 100644 --- a/tutorials/source_zh_cn/debug/dryrun.md +++ b/tutorials/source_zh_cn/debug/dryrun.md @@ -18,6 +18,7 @@ MindSpore框架提供了DryRun机制,模拟(mock)所有的device侧接口 > - 该特性为模拟执行,无法获取算子正确的输出信息,静态图涉及动态shape的场景下,存在算子的输入shape依赖上一个算子的输出shape的情况,因此不适用该特性。 > - 动态图场景需要采用[mock接口](https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.utils.html#mindspore.utils.dryrun.mock)自行适配脚本。 +> - 本特性仅支持jit_level=O0/O1场景,不支持GE后端。 #### MS_SIMULATION_LEVEL=0 -- Gitee