| Files | Last commit | Last update |
|---|---|---|
fix(pooling): 修复 max_pool3_d geir example 在 ascend950 上运行失败问题 Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !13463 merge fix/max_pool3_d_geir_example_soc950 into master fix(pooling): 修复 max_pool3_d geir example 在 ascend950 上运行失败问题 Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: ## 描述 问题 执行 bash build.sh --run_example max_pool3_d graph --example_name=max_pool_3d --soc=ascend950 失败,tiling 报错 MaxPool3D: output shape dim = 1, should be equal 5。 原因分析 arch35 示例存在三处缺陷,逐层暴露: 1. ADD_INPUT 宏对 Data 节点缺少 update_output_desc_y 调用 → Data 输出描述为空 → 算子输出 shape 被置为标量,tiling 校验失败; 2. 输入输出描述符使用 FORMAT_ND 且未设置 origin format → FE 编译期输出 desc 退化为 shape (1,), ori_shape (); 3. 示例参数与内核语义不自洽:tiling 要求 ksize/strides 的 N/C 维为 1(NDHWC 约定),但输入 shape {4,1,4,4,6} 为 NCDHW 风格且未设置 data_format。 主要改动 - examples/arch35/test_geir_max_pool_3d.cpp:补齐 update_output_desc_y;描述符改为 FORMAT_NDHWC 并设置 origin format;输入 shape 调整为 {4,4,4,4,6}(与输出 {4,1,1,3,6}、 ksize/strides 按 NDHWC 语义完全自洽,已对照 infershape 与 tiling 公式逐一验证);显式设置 data_format="NDHWC"。 - examples/test_geir_max_pool_3d.cpp:替换为与 arch35 一致的通用版本。原 910b 专用版(NDC1HWC0 存储格式,!7385 引入)在 ascend950 上因 TransData 不支持而必然失败, 该版本保留在 git 历史中;且本算子在仓内无 arch22/910b 适配代码,故不新增 arch22 示例副本。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/8015 ## 测试 - bash build.sh --run_example max_pool3_d graph --example_name=max_pool_3d --soc=ascend950 运行成功,顶层与 arch35 两个示例均通过(exit code 0)。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13463 | 19 days ago | |
fix(pooling): 修复 max_pool3_d geir example 在 ascend950 上运行失败问题 Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !13463 merge fix/max_pool3_d_geir_example_soc950 into master fix(pooling): 修复 max_pool3_d geir example 在 ascend950 上运行失败问题 Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: ## 描述 问题 执行 bash build.sh --run_example max_pool3_d graph --example_name=max_pool_3d --soc=ascend950 失败,tiling 报错 MaxPool3D: output shape dim = 1, should be equal 5。 原因分析 arch35 示例存在三处缺陷,逐层暴露: 1. ADD_INPUT 宏对 Data 节点缺少 update_output_desc_y 调用 → Data 输出描述为空 → 算子输出 shape 被置为标量,tiling 校验失败; 2. 输入输出描述符使用 FORMAT_ND 且未设置 origin format → FE 编译期输出 desc 退化为 shape (1,), ori_shape (); 3. 示例参数与内核语义不自洽:tiling 要求 ksize/strides 的 N/C 维为 1(NDHWC 约定),但输入 shape {4,1,4,4,6} 为 NCDHW 风格且未设置 data_format。 主要改动 - examples/arch35/test_geir_max_pool_3d.cpp:补齐 update_output_desc_y;描述符改为 FORMAT_NDHWC 并设置 origin format;输入 shape 调整为 {4,4,4,4,6}(与输出 {4,1,1,3,6}、 ksize/strides 按 NDHWC 语义完全自洽,已对照 infershape 与 tiling 公式逐一验证);显式设置 data_format="NDHWC"。 - examples/test_geir_max_pool_3d.cpp:替换为与 arch35 一致的通用版本。原 910b 专用版(NDC1HWC0 存储格式,!7385 引入)在 ascend950 上因 TransData 不支持而必然失败, 该版本保留在 git 历史中;且本算子在仓内无 arch22/910b 适配代码,故不新增 arch22 示例副本。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/8015 ## 测试 - bash build.sh --run_example max_pool3_d graph --example_name=max_pool_3d --soc=ascend950 运行成功,顶层与 arch35 两个示例均通过(exit code 0)。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13463 | 19 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 19 days ago | ||
| 19 days ago |