Pull Request has been successfully merged by CANN-robot.
(Thank you for junnyleo's contribution.)变更摘要
该 PR 针对 Full 算子的文档/支持类型声明进行修正(fix(operation): Fix Full's doc)。在 framework/src/interface/operation/vector/full.cpp 的 Full 函数中,FULL_A5_TYPES 集合被收窄:移除了 DT_INT64 与 DT_UINT64,使其与 FULL_A2A3_TYPES 完全一致(两者均为 DT_FP32、DT_FP16、DT_BF16、DT_INT8、DT_INT16、DT_INT32、DT_UINT8、DT_UINT16、DT_UINT32、DT_BOOL)。该集合通过 GetSupportedDataTypesByArch 汇总后交由 CheckTensorDataType 对入参 dtype 做校验,因此此改动会同步影响 Full 算子在 A5 架构下的数据类型支持声明。
主要改动
- 移除
FULL_A5_TYPES中的 64 位整型类型: 在full.cpp的Full函数中删除DT_INT64和DT_UINT64,使 A5 架构支持类型集合与FULL_A2A3_TYPES保持一致(净删除 2 行,重排 3 行)。 - 收窄 A5 架构下的类型声明: 调整后的
FULL_A5_TYPES经GetSupportedDataTypesByArch(FULL_A2A3_TYPES, FULL_A5_TYPES)参与CheckTensorDataType校验,A5 架构下Full算子不再声明支持DT_INT64/DT_UINT64。


代码审查
审查结论
变更文件逐一确认
- framework/src/interface/operation/vector/full.cpp — 发现 1 个问题(P2):
Full(const SymbolicScalar&, ...)重载(第 96-98 行)的FULL_A5_TYPES未随本次改动同步移除DT_INT64/DT_UINT64,与Full(const Element&, ...)重载在 A5 架构上的支持类型产生分歧,修复不完整。 - framework/tests/st/operation/test_case/Full_st_test_cases.csv — 发现 1 个问题(P3):删除全部 int64/uint64 正向用例后未补充拒绝路径测试,本次改动唯一修改的 dtype 支持边界失去回归保护。
发现统计
- P0:0
- P1:0
- P2:1
- P3:1
总体风险判断
本次改动(按文档对齐 Full 在 A5 上的支持类型)方向正确,删除的测试用例与代码改动一致、不会导致测试失败。但修复是单向的:同一个算子有两个公开重载,仅更新了其中一个,导致 A5 上同一操作因入口不同而有不同行为——要么动态标量路径在运行期以晦涩错误失败,要么 Element 路径错误拒绝合法输入,属中等风险的不完整修复,应同步修改第二个重载并补充边界测试。整体风险可控但需跟进。
| 类型 | 数量 |
|---|---|
| 🔴 阻塞 | 0 |
| 🟡 建议 | 1 |
💬 仅评论


Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| docs | ✅ shi-dingkun, lyz0328, 尹杰 (3/2) | ✅ lyz0328, 尹杰 (2/1) |
| framework/src/interface/operation | ✅ 尹杰, shi-dingkun (2/2) | ✅ 尹杰 (1/1) |
| repo-cann/pypto | ✅ 尹杰, shi-dingkun (2/2) | ✅ 尹杰 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
junnyleo, thanks for your pull request. All authors of the commits have signed the CLA. 👍


/approve


/approve


移除Gather,Full在A5上对DT_INT64、DT_UINT64的支持
Related Issue: #3261