| Files | Last commit | Last update |
|---|---|---|
chore: normalize CRLF to LF in 4 Python files (#3454) Co-authored-by: lizixuan1020<3064268022@qq.com> # message auto-generated for no-merge-commit merge: !6729 merge fix/crlf-line-endings-3454 into master chore: normalize CRLF to LF in 4 Python files (#3454) Created-by: lizixuan1020 Commit-by: lizixuan1020 Merged-by: cann-robot Description: ### PR功能描述 / 为什么需要这个合入 按 issue #3454 将 4 个 100% CRLF 行尾的 Python 文件归一为 LF(与全仓其它 .py 一致): | 文件 | 原状态 | 转换后 | |---|---|---| | tools/verifier/pass_compare.py | 746 行全 CRLF | 0 CRLF | | tools/verifier/tensor_diff.py | 357 行全 CRLF | 0 CRLF | | python/pypto/op/distributed.py | 485 行全 CRLF | 0 CRLF | | framework/src/cost_model/simulation/scripts/perf_baseline.py | 179 行全 CRLF | 0 CRLF | 采用 issue 建议的逐文件修法(sed s/\r$//)。.gitattributes 的 *.py text eol=lf 强制归一为制度性可选项,涉及全仓策略,留待维护方决策,本 PR 不含(如需要可另行提交)。 ### 改动类型 - 其它 / Other(行尾归一,无内容变更) ### 测试信息 - 行数守恒:4 文件转换前后行数逐一相等(746/357/485/179) - CRLF 计数:转换后 4 文件均为 0 - python3 -m py_compile 4/4 通过 - **零内容变化证明**:git diff --ignore-cr-at-eol 对前一版本为空 diff(0 行)——除行尾外字节级一致 - 本 PR 自身的 diff 显示 1767+/1767- 对称改动,即每行仅行尾变化(修复后这些文件未来的 diff 将不再整文件重写) fixes #3454 See merge request: cann/pypto!6729 | 2 months ago | |
fix(simulation): Fix memory leak in DynPvModelImpl InitPv Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !6783 merge fix/pv-initpv-memory-leak into master fix(simulation): Fix memory leak in DynPvModelImpl InitPv Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Fix memory leak in DynPvModelImpl InitPv InitPv allocated three uint64_t buffers on the heap (new uint64_t(0), new uint64_t(1), new uint64_t(34603008)) and passed them to pv_reg_write_ as read-only register value buffers. The pointers were neither stored as members nor deleted, so every precision simulation initialization leaked all three allocations. Changes: - Replace the three heap allocations with stack uint64_t locals and pass their addresses, matching the existing idiom used for HBM_PARA_BASE - Verified by rebuild and softmax run in SIM mode covering the RunPvModel -> InitPv call chain Related Issues: #3478 See merge request: cann/pypto!6783 | 1 month ago | |
fix(simulation): Remove simulation_ca module Co-authored-by: zhengronggui<zhengronggui@huawei.com> # message auto-generated for no-merge-commit merge: !2717 merge master into master fix(simulation): Remove simulation_ca module Created-by: zhengronggui Commit-by: zhengronggui Merged-by: cann-robot Description: 移除仿真中simulation_ca模块 See merge request: cann/pypto!2717 | 7 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 1 month ago | ||
| 7 months ago |