| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(resize grad): tiling format校验改用GetStorageFormat替代GetOriginFormat Co-authored-by: huang-qiang<huangqiang3@huawei.com> # message auto-generated for no-merge-commit merge: !1304 merge agent/issue-17 into master fix(resize grad): tiling format校验改用GetStorageFormat替代GetOriginFormat Created-by: huang-qiang Commit-by: huang-qiang Merged-by: cann-robot Description: ## 描述 修复 resize_nearest_neighbor_v2_grad、resize_bilinear_v2_grad、resize_bicubic_v2_grad 三个算子 tiling 阶段 format 校验缺陷。 ### 改动原因 图优化后,张量的 origin format 可能被改写为 ND(如 5D 折叠为 4D),而运行时真实排布的 storage format 仍为 NCHW 或 NHWC。原 tiling 代码使用 GetOriginFormat() 读取 format 进行校验,当 origin format 为 ND 时会导致: - format 校验失败(ND 不在允许的 NCHW/NHWC 列表中),或 - tiling 逻辑误判 H/W/C 轴,产生错误的 tilingKey / blockNum。 ### 改动方法 **算子 tiling 修复(3 个算子,8 处 format 读取)**: - resize_nearest_neighbor_v2_grad_tiling_base.cpp:grads、y 共 2 处 GetOriginFormat() → GetFormat().GetStorageFormat() - resize_bilinear_v2_grad_tiling_arch35.cpp:grads、original_image、y 共 3 处同上修改,并将 originalImageDtype_/originalImageFormat_ 重命名为 imageDtype_/imageFormat_ - resize_bicubic_v2_grad_base_tiling_arch35.cpp:grads、original_image、y 共 3 处同上修改,同样重命名字段 - 对应头文件(bilinear、bicubic)同步更新字段名 **UT 框架扩展(向后兼容)**: - tiling_context_faker.h:TensorDescription 新增 storageFormat 参数(默认哨兵值 FORMAT_END,表示与 origin format 相同),存量用例无需改动 - tiling_case_executor.cpp:构造 gert::Tensor 时使用 storageFormat_ 替代 format_ 作为实际 StorageFormat **回归用例(3 个算子新增 5 个用例)**: - nearest:origin=ND/storage=NCHW + origin=ND/storage=NHWC,共 2 个 - bilinear:origin=ND/storage=NCHW + origin=ND/storage=NHWC,共 2 个 - bicubic:origin=ND/storage=NHWC,采用 tilingKey/blockNum 对照法(bicubic 允许 ND,需用 NHWC 场景才能区分),共 1 个 ## 关联的Issue - #761 ## 测试 - 修复版 45 个 UT 用例全绿 - 反向验证:还原修复后新用例恰好捕获 bug(5 失败 / 40 通过),证明用例有效性 - 已还原修复并复测通过 ## 文档更新 无 ## 类型标签 - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!1304 | 2 天前 | |
完善工具依赖文档和更新依赖安装脚本 Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !342 merge master into master 完善工具依赖文档和更新依赖安装脚本 Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 完善工具依赖文档和更新依赖安装脚本 ## 关联的Issue todo ## 测试 功能测试: ==== Checking CMake ==== Current CMake version: 3.16.3 CMake meets requirements ==== Checking pigz ==== Current pigz version: 2.4 pigz meets requirements ==== Checking dos2unix ==== dos2unix has been installed ==== Checking googletest ==== Current googletest version: 1.10.0 Install googletest? [Y/n] y Installing googletest... xxxx googletest installed successfully (1.10.0) ==================================================== All dependencies installed successfully! ==================================================== pip3 install -r requirements.txt Looking in indexes: http://xxxx/pypi/simple Requirement already satisfied: xxx Requirement already satisfied: xxx Requirement already satisfied: xxx 常规测试: ==================================== FINAL SUMMARY ==================================== kirinx90 : FAILED (no .o) ascend950 : OK (144 .o) ascend910 : SKIPPED (.o) ascend910b : OK (81 .o) ascend910B : OK (81 .o) ascend310b : OK (3 .o) ascend310B : OK (3 .o) ascend310p : OK (25 .o) ascend310P : OK (25 .o) ascend610lite : SKIPPED (.o) ascend910_93 : OK (81 .o) STATIC_BUILD : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz) mc62cm12a : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run) ==================================== [ALL DONE] ## 文档更新 工具依赖的txt更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!342 | 6 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 天前 | ||
| 6 个月前 |