From 6f0327bf63be5a64c7f0bfb4ee0ad9195698f5b3 Mon Sep 17 00:00:00 2001 From: huangbingjian Date: Fri, 5 Sep 2025 09:48:02 +0800 Subject: [PATCH] Update static graph documents --- tutorials/source_en/compile/static_graph.md | 5 +---- tutorials/source_zh_cn/compile/static_graph.md | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tutorials/source_en/compile/static_graph.md b/tutorials/source_en/compile/static_graph.md index 039635b751..6723df130f 100644 --- a/tutorials/source_en/compile/static_graph.md +++ b/tutorials/source_en/compile/static_graph.md @@ -1626,10 +1626,7 @@ current extension base on AST compilation. 1. Python built-in modules and Python standard libraries, such as `os`, `sys`, `math`, `time` and other modules. 2. Third-party code libraries. Their module paths are under the `site-packages` directory of the Python installation directory, - which need to be installed first and then imported, such `NumPy` and `Scipy`. It should be noted that MindSpore suites such as - `mindyolo` and `mindflow` are not treated as third-party libraries. For a detailed list, please refer to the - `_modules_from_mindspore` list of the - [parser](https://gitee.com/mindspore/mindspore/blob/master/mindspore/python/mindspore/_extends/parse/parser.py) file. + which need to be installed first and then imported, such `numpy` and `scipy`. For a detailed list, please refer to the [third_party_modules](https://gitee.com/mindspore/mindspore/blob/master/mindspore/python/mindspore/_extends/parse/jit_fallback_modules/third_party_modules.py) file. 3. Modules specified by the environment variable `MS_JIT_IGNORE_MODULES`. In contrast, there is the environment variable `MS_JIT_MODULES`. For more details, please refer to [Environment Variables](https://www.mindspore.cn/docs/en/master/api_python/env_var_list.html). diff --git a/tutorials/source_zh_cn/compile/static_graph.md b/tutorials/source_zh_cn/compile/static_graph.md index 27090fe556..0c431ecd2d 100644 --- a/tutorials/source_zh_cn/compile/static_graph.md +++ b/tutorials/source_zh_cn/compile/static_graph.md @@ -1512,8 +1512,7 @@ In-place操作是指直接修改输入张量的内容,而不创建新的张量 - 第三方库 1. Python内置模块和Python标准库。例如`os`、`sys`、`math`、`time`等模块。 - 2. 第三方代码库。路径在Python安装目录的`site-packages`目录下,需要先安装后导入,例如`NumPy`、`SciPy`等。需要注意的是,`mindyolo`、`mindflow`等MindSpore套件不被视作第三方库,具体列表可以参考[parser](https://gitee.com/mindspore/mindspore/blob/master/mindspore/python/mindspore/_extends/parse/parser.py)文件的 - `_modules_from_mindspore` 列表。 + 2. 第三方代码库。路径在Python安装目录的`site-packages`目录下,需要先安装后导入,例如`numpy`、`scipy`等,具体列表可以参考[third_party_modules](https://gitee.com/mindspore/mindspore/blob/master/mindspore/python/mindspore/_extends/parse/jit_fallback_modules/third_party_modules.py)文件。 3. 通过环境变量`MS_JIT_IGNORE_MODULES`指定的模块。与之相对的有环境变量`MS_JIT_MODULES`,具体使用方法请参考[环境变量](https://www.mindspore.cn/docs/zh-CN/master/api_python/env_var_list.html)。 - 支持第三方库的数据类型,允许调用和返回第三方库的对象。 -- Gitee