diff --git a/docs/mindformers/docs/source_en/appendix/conf_files.md b/docs/mindformers/docs/source_en/appendix/conf_files.md index ee6d66cfd79733a07c7a90b32cbe2da59edf530b..4276a105358b7481251b6a33ab0e0caa196a1e1b 100644 --- a/docs/mindformers/docs/source_en/appendix/conf_files.md +++ b/docs/mindformers/docs/source_en/appendix/conf_files.md @@ -40,6 +40,7 @@ Context configuration is mainly used to specify the [mindspore.set_context](http | context.mempool_block_size | Set the size of the memory pool block for devices. The format is "xxGB". Default value is `"1GB"` | str | | context.save_graphs | Save the compilation graph during execution.
1. `False` or `0` indicates that the intermediate compilation map is not saved.
2. `1` means outputting some of the intermediate files generated during the compilation of the diagram.
3. `True` or `2` indicates the generation of more backend-process-related IR files.
4. `3` indicates the generation of visualized computational diagrams and more detailed front-end IR diagrams. | bool/int | | context.save_graphs_path | Path for saving the compilation diagram. | str | +| context.affinity_cpu_list | Optional configuration option, used to implement user-defined binding policies. Enable default binding policy when not configured. `None` means to disable the binding function. Default value is `{}`. If you want to enable custom binding policies, you need to pass in' dict '. See [mindspore.runtime.set_cpu_affinity](https://www.mindspore.cn/docs/en/master/api_python/runtime/mindspore.runtime.set_cpu_affinity.html) for details. | dict/str | ### Model Configuration diff --git a/docs/mindformers/docs/source_zh_cn/appendix/conf_files.md b/docs/mindformers/docs/source_zh_cn/appendix/conf_files.md index 77ecdae8558f96e55813a94cc55eda4ba7a569b7..8d5f20a22ae32e4029ccb6a0c675f8a1b8b3ad34 100644 --- a/docs/mindformers/docs/source_zh_cn/appendix/conf_files.md +++ b/docs/mindformers/docs/source_zh_cn/appendix/conf_files.md @@ -40,6 +40,7 @@ Context配置主要用于指定[mindspore.set_context](https://www.mindspore.cn/ | context.mempool_block_size | 设置内存块大小,格式为"xxGB",默认值为`1GB` | str | | context.save_graphs | 在执行过程中保存编译图。
1. `False`或`0`表示不保存中间编译图。
2. `1`表示运行时会输出图编译过程中生成的一些中间文件。
3. `True`或`2`表示生成更多后端流程相关的IR文件。
4. `3`表示生成可视化计算图和更多详细的前端IR图。 | bool/int | | context.save_graphs_path | 保存编译图的路径 | str | +| context.affinity_cpu_list | 可选配置项,用于实现用户自定义绑核策略。不配置时,默认绑核。`None`表示关闭绑核。默认值为`{}`,如想使能自定义绑核策略,需传入`dict`,详情可参考[mindspore.runtime.set_cpu_affinity](https://www.mindspore.cn/docs/zh-CN/master/api_python/runtime/mindspore.runtime.set_cpu_affinity.html#mindspore.runtime.set_cpu_affinity) | dict/str | ### 模型配置