| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(circular_pad): 统一2d/3d为单一GEIR算子,加固负padding与索引位宽处理 Co-authored-by: wuyan<wuyan23@huawei.com> # message auto-generated for no-merge-commit merge: !6780 merge master into master fix(circular_pad): 统一2d/3d为单一GEIR算子,加固负padding与索引位宽处理 Created-by: rrely11 Commit-by: wuyan Merged-by: cann-robot Description: ## 描述 本次 PR 将 CircularPad2d/CircularPad3d 统一为单一 GEIR 算子并加固边界处理,具体如下: **1. 统一 2d/3d 为单一 GEIR 算子** - 将 CircularPad2d、CircularPad3d 合并为单一 GEIR 算子 circular_pad,通过 paddings 长度(4 为 2d、6 为 3d)区分模式。 - 参数统一为 x(输入,shape 3–5 维)、paddings(长度 4/6)、y(输出);同步更新 README 与 aclnnCircularPad2d/3d 文档、op_graph/circular_pad_proto.h、op_api 头文件。 **2. 加固负 padding 与索引位宽处理** - 支持负 padding 裁剪语义(负值裁剪、正值循环填充),infer shape/tiling 增加 int64 溢出与每侧越界校验。 - kernel(circular_pad_simt.h、circular_pad_tiling_data.h)修复 SIMT 索引位宽(uint32/uint64)切换路径。 - 修复示例 test_aclnn_circular_pad.cpp 中 executor 重复释放导致的 double free。 **3. 修正 golden 浮点精度为位级精确比对** - tests/assets/golden.py 的 float32/float16/bfloat16 比对标准由 cross_check(L1) 改为 binary_equal,对齐 spec 的 bitwise_equal(rtol=0/atol=0)。 **4. 补充 ST 用例** - kernel 与 aclnn 各补充 5 条功能用例(tests/st/{kernel,aclnn})。 ## 关联的Issue - https://gitcode.com/cann/ops-math/issues/4402 ([Requirement|需求建议]: circular_pad 质量加固) ## 测试 - UT:test_circular_pad_tiling_arch35.cpp 覆盖负 padding 与索引位宽切分。 - ST:补充 kernel/aclnn 各 5 条功能用例,覆盖 float16/bfloat16/float32/int8/int32。 - 精度:golden 采用位级精确比对(bitwise_equal)。 ## 文档更新 - conversion/circular_pad/README.md - conversion/circular_pad/docs/aclnnCircularPad2d.md - conversion/circular_pad/docs/aclnnCircularPad3d.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!6780 | 13 天前 | |
fix(circular_pad): 统一2d/3d为单一GEIR算子,加固负padding与索引位宽处理 Co-authored-by: wuyan<wuyan23@huawei.com> # message auto-generated for no-merge-commit merge: !6780 merge master into master fix(circular_pad): 统一2d/3d为单一GEIR算子,加固负padding与索引位宽处理 Created-by: rrely11 Commit-by: wuyan Merged-by: cann-robot Description: ## 描述 本次 PR 将 CircularPad2d/CircularPad3d 统一为单一 GEIR 算子并加固边界处理,具体如下: **1. 统一 2d/3d 为单一 GEIR 算子** - 将 CircularPad2d、CircularPad3d 合并为单一 GEIR 算子 circular_pad,通过 paddings 长度(4 为 2d、6 为 3d)区分模式。 - 参数统一为 x(输入,shape 3–5 维)、paddings(长度 4/6)、y(输出);同步更新 README 与 aclnnCircularPad2d/3d 文档、op_graph/circular_pad_proto.h、op_api 头文件。 **2. 加固负 padding 与索引位宽处理** - 支持负 padding 裁剪语义(负值裁剪、正值循环填充),infer shape/tiling 增加 int64 溢出与每侧越界校验。 - kernel(circular_pad_simt.h、circular_pad_tiling_data.h)修复 SIMT 索引位宽(uint32/uint64)切换路径。 - 修复示例 test_aclnn_circular_pad.cpp 中 executor 重复释放导致的 double free。 **3. 修正 golden 浮点精度为位级精确比对** - tests/assets/golden.py 的 float32/float16/bfloat16 比对标准由 cross_check(L1) 改为 binary_equal,对齐 spec 的 bitwise_equal(rtol=0/atol=0)。 **4. 补充 ST 用例** - kernel 与 aclnn 各补充 5 条功能用例(tests/st/{kernel,aclnn})。 ## 关联的Issue - https://gitcode.com/cann/ops-math/issues/4402 ([Requirement|需求建议]: circular_pad 质量加固) ## 测试 - UT:test_circular_pad_tiling_arch35.cpp 覆盖负 padding 与索引位宽切分。 - ST:补充 kernel/aclnn 各 5 条功能用例,覆盖 float16/bfloat16/float32/int8/int32。 - 精度:golden 采用位级精确比对(bitwise_equal)。 ## 文档更新 - conversion/circular_pad/README.md - conversion/circular_pad/docs/aclnnCircularPad2d.md - conversion/circular_pad/docs/aclnnCircularPad3d.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!6780 | 13 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 13 天前 | ||
| 13 天前 |