| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
fix: replace Chinese log messages with English in examples Co-authored-by: wangyuchen<wangyuchen38@huawei.com> # message auto-generated for no-merge-commit merge: !4883 merge fix/example_log into develop fix: replace Chinese log messages with English in examples Created-by: yuchen97 Commit-by: wangyuchen Merged-by: cann-robot Description: ## Description Replace Chinese log/print messages with English across all examples/ subdirectories to comply with the "no Chinese in logs" rule. Also fix one implicit string concatenation bug (missing space) and improve the English fluency of a previously awkward translation. ## Changes ### examples/es/ (183 issues, 30 files) - C++ main.cpp files (14 subdirs): "GE 初始化失败" → "GE initialization failed", "执行结束" → "Execution completed", "错误: 未知命令" → "Error: unknown command" - Python run_graph() (16 files): all Chinese print statements replaced with fluent English ("图运行成功" → "Graph executed successfully", "清理GE环境" → "Cleaning up GE environment", etc.) - hccl_ep/hccl_tp: "单卡模式"/"多卡模式" → "Single-card mode"/"Multi-card mode" ### examples/fusion_pass/ (68 issues, 12 files) - RuntimeError messages: ES API missing prompts translated from Chinese to English with proper README section references - Pass registration messages: "已注册" → "registered", "请通过 ASCEND_GE_PY_PASS_PATH 指向本文件" → "Please add this file to ASCEND_GE_PY_PASS_PATH" (improved translation per review feedback) - Graph base pass and pattern base pass: all Chinese print/log replaced ### examples/multi_stream_autotune/ (73 issues, 3 files) - ge_ms_autotune.py: ~110 Chinese log/error/print messages replaced; header and column labels in output table anglicized; docstrings updated - sample_run.py: Chinese comments and print statements replaced - README.md / README_en.md: example output section updated to match new English outputs - Fixed missing space bug in find_compiled_om() string concatenation ### examples/offline_compile_run/ (70 issues, 10 files) - C++ files: all std::cerr/std::cout Chinese messages replaced ("失败" → "failed", "初始化成功" → "initialized successfully", etc.) - Python files: all Chinese print/f-string messages replaced with English equivalents ## Change Statistics - **56 files** modified - **467 insertions**, **442 deletions** - **394 Chinese log messages** converted to English across 4 module directories ## Change Type - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] 💄 Code style update - [ ] ♻️ Refactoring - [ ] 📦 Build process - [x] 📝 Documentation / example update ## How to Test 1. Build any example under examples/ and verify all output messages are in English 2. Check examples/multi_stream_autotune/ outputs for proper formatting ## Checklist - [x] My code follows the project's code style - [x] I have self-tested the changes - [x] I have updated related documentation - [x] I have used appropriate type label in the title - [x] I have read and followed the contributing guidelines See merge request: cann/ge!4883 | 10 天前 | |
docs: 修复 ES 构图样例拼写与文档描述错误 Co-authored-by: du-hua1024<duhua2@huawei.com> # message auto-generated for no-merge-commit merge: !3515 merge develop into develop docs: 修复 ES 构图样例拼写与文档描述错误 Created-by: du-hua1024 Commit-by: du-hua1024 Merged-by: cann-robot Description: # Pull Request ## 描述 修复 ES 构图样例中的拼写错误、API 层级描述错误及文档遗漏问题,提升样例文档与代码的一致性。 主要变更: - 在 examples/es/README.md 中补充 transformer_nz 样例索引 - 修正 private_attributes 样例中 Sigmod → Sigmoid,以及文件名 make_sigmod_graph.cpp → make_sigmoid_graph.cpp - 修正 normal_attributes/cpp/README.md 中“装置”→“转置”,修复 C API 参数 transpose_x2 重复命名,并更正 C++ API 函数签名 - 修正 optional_input/cpp/README.md 中 API 支持层级描述(Python → C++/C) - 修正 control_op/python/README.md 中 API 层级描述(C API → Python API),并更正 If 函数签名 - 修正 make_batchnorm_graph.cpp/.py 中 garph/Garph → graph/Graph ## 变更类型 - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 1. 阅读变更涉及的 README 文件,确认拼写、API 层级描述与函数签名正确 2. 可选:在 examples/es/optional_input/cpp 与 examples/es/optional_input/python 目录执行 bash run_sample.sh,确认图名修正后样例仍可正常 dump ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次变更不涉及功能逻辑修改,主要为文档描述与 dump 图名称字符串修正。 See merge request: cann/ge!3515 | 3 个月前 | |
提交英文文档 | 2 个月前 |
ES构图样例
本目录提供了ES构图相关的各种样例,包括C++和Python两种实现方式:
| 样例 | 样例链接 |
|---|---|
| es构图控制边样例 | C++样例 Python样例 |
| es构图控制算子样例 | C++样例 Python样例 |
| es构图动态输入样例 | C++样例 Python样例 |
| es构图动态输出样例 | C++样例 Python样例 |
| es构图普通属性样例 | C++样例 Python样例 |
| es构图普通输入样例 | C++样例 Python样例 |
| es构图操作符重载样例 | C++样例 Python样例 |
| es构图可选输入样例 | C++样例 Python样例 |
| es构图私有属性样例 | C++样例 Python样例 |
| es构图transformer样例 | C++样例 Python样例 |
| es构图transformer_nz样例 | C++样例 Python样例 |
| es构图集合通信hccl_tp样例 | C++样例 Python样例 |
| es构图集合通信hccl_ep样例 | C++样例 Python样例 |
| es构图异步执行的样例 | C++样例 Python样例 |