| Files | Last commit | Last update |
|---|---|---|
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 months ago | |
fix: Correct lrelu arguments, source location cleanup, directory retention and argsort docs Co-authored-by: Aiden<linking_sky@outlook.com> # message auto-generated for no-merge-commit merge: !7206 merge fix/consolidate-four-prs into master fix: Correct lrelu arguments, source location cleanup, directory retention and argsort docs Created-by: linking_sky Commit-by: Aiden Merged-by: cann-robot Description: ## 描述 Tensor.lrelu 多声明了一个 other 参数,调用 pypto.lrelu 时传入多余参数,导致默认调用和显式传入斜率时失败。pypto.lrelu 的输入参数名 other 与文档中的 input、注释中的 a 不一致,使用 input= 关键字调用会失败。 op_wrapper 和 source_location 在被包装函数抛出异常时未清理源码位置状态,导致后续算子使用错误的源码位置。 RemoveOldDirectories 按目录修改时间升序排序后删除超出保留数量的目录,实际保留旧目录、删除新目录。 argsort 文档中的 descending 默认值为 True,与实际实现的 False 不一致。 ## 修复 移除 Tensor.lrelu 中多余的 other 参数,正确传递当前张量和 negative_slope。将 pypto.lrelu 的输入参数名统一为 input,同步更新实现和注释。 在 op_wrapper 和 source_location 中使用 try/finally,确保异常发生后仍清理源码位置状态。 将历史目录按修改时间降序排序,保留最新目录,并补充目录保留顺序、保留数量边界及前缀过滤测试。 修正 argsort 文档中的默认值,明确默认按升序返回索引,并同步更新 docstring。 ## 测试 - Tensor.lrelu 通过 A3 环境测试,验证默认调用、位置参数、关键字参数和 native graph。 ### 关联ISSUE ISSUE:[#3685](https://gitcode.com/cann/pypto/issues/3685) See merge request: cann/pypto!7206 | 1 month ago | |
fix(interface): Prevent dynamic kernel hash collision after reset Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5617 merge 0822_hash into master fix(interface): Prevent dynamic kernel hash collision after reset Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 将DYNAMIC类型的Function magic与其他function分开管理,并且在复跑时不复用,避免在这一层计算哈希时哈希冲突 See merge request: cann/pypto!5617 | 3 months ago | |
fix(codegen): Propagate parallel task exceptions instead of swallowing them Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5266 merge compile_fix into master fix(codegen): Propagate parallel task exceptions instead of swallowing them Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 多线程 Codegen 确定性 Kernel 编译 Related Issue:[https://gitcode.com/cann/pypto/issues/2913](https://gitcode.com/cann/pypto/issues/2913) 2. Issue 背景:GenCode 内的 ExecuteParallelCompile 编译失败抛出 COMPILE_CODE_FAILED 被吞掉,leafDict[hash] = leaf 未执行,leafDict不完整。下游 ConstructCodeInfo → RunCompileAicoreKernelStage → RunEncodeStage 继续访问不完整的 leafDict,触发 std::unordered_map::at() 越界,抛出 F00003 RuntimeError: _Map_base::at 二次异常,掩盖了真实的编译错误 根因:codeGen在并行编译遇到错误抛出异常时,只记录日志,并不传播异常和终止剩余task,导致报错在第二现场F00003 RuntimeError: _Map_base::at处 解决方法:修改 ParallelExecuteAndWait,使其在 task 失败时记录错误、提前终止剩余 task、并在所有线程 join 后重新抛出首个 COMPILE_CODE_FAILED异常 修改前:  修改后:  See merge request: cann/pypto!5266 | 3 months ago | |
feat(Pass): Add pgo pass framework Co-authored-by: yinjie27_<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !7403 merge pgo-vf-init-origin into master feat(Pass): Add pgo pass framework Created-by: yinjie27_ Commit-by: yinjie27_ Merged-by: cann-robot Description: feat(Pass): Add pgo pass framework See merge request: cann/pypto!7403 | 24 days ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 7 months ago | ||
| 1 month ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 24 days ago | ||
| 4 months ago | ||
| 7 months ago | ||
| 4 months ago |