Merged
feat(NpuFormatCast): NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型格式转换支持 #3340
zhoushaolongAdd on Jun 15
feat(NpuFormatCast): NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型格式转换支持 #3340
Merged
Merged fromzhoushaolong/ops-math_fix0615intocann/ops-mathmaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for zhoushaolong's contribution.)Jun 15 Created pull request, commit e3cb580a
Jun 15 Added label: cann-cla/yes
CANN-robot
Jun 15 Comments:
Jun 15 Comments:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/docs/acl*.md | ✅ 周文芳, 张磊 (2/2) | ✅ 周文芳 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhoushaolong, thanks for your pull request. All authors of the commits have signed the CLA. 👍


zhoushaolong
Jun 15 Comments:
Jun 15 Comments:
compile


Jun 15 Pre merge succeeded (commit_id: 59432795fb8c47a8a2be91e56f671b5add4803e3)
Jun 15 Added label: ci-pipeline-running
CANN-robot
Jun 15 Comments:
Jun 15 Comments:
流水线任务触发成功
任务链接 [dab41f83b85b4cebb64b9a4333d288af][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-15 20:54:04] CI执行结束


CANN-robot
Jun 15 Comments:
Jun 15 Comments:
流水线任务触发成功
任务链接 [2f0b9de7efb14d4c9ee213e02003162d][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | >>>>> |
[2026-06-15 20:49:37] CI执行结束


Jun 15 Added label: api-check-pass
9 event messages are collapsed here。 See more
Jun 16 Removed label: ci-pipeline-passed
CANN-robot
Jun 16 Comments:
Jun 16 Comments:
zhoushaolong
Jun 16 Comments:
Jun 16 Comments:
compile


Jun 16 Pre merge succeeded (commit_id: e7b2e8005d09aae3825560dff2d42701d1335435)
Jun 16 Modify description of pull request
Jun 16 Removed label: api-check-pass
Jun 16 Added label: ci-pipeline-running
CANN-robot
Jun 16 Comments:
Jun 16 Comments:
流水线任务触发成功
任务链接 [3c0c0d2259fc43d3a551e868b6bed40f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-16 09:54:53] CI执行结束


CANN-robot
Jun 16 Comments:
Jun 16 Comments:
流水线任务触发成功
任务链接 [ec23c6e4209f49139f4f72683e292286][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | >>>>> |
[2026-06-16 09:53:04] CI执行结束


Jun 16 Added label: api-check-pass
Jun 16 Removed label: ci-pipeline-running
Jun 16 Added label: ci-pipeline-passed
zhouwenfang
Jun 16 Comments:
Jun 16 Comments:
/approve


Jun 16 Added label: approved
zl_hw
Jun 16 Comments:
Jun 16 Comments:
/lgtm
/approve


Jun 16 Added label: lgtm
Jun 16 Closed associated issue
Jun 16 Merged pull request
描述
为 NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型的格式转换支持。在
aclnnNpuFormatCast.md文档中,分别在aclnnNpuFormatCastCalculateSizeAndFormat和aclnnNpuFormatCastGetWorkspaceSize两个接口的支持规格表中,添加 FLOAT4_E1M2 对应的 ND→FRACTAL_NZ 格式转换行。关联的Issue
测试
新增 FLOAT4_E1M2 dtype 的 ND→NZ 格式转换规格,需通过算子规格审查验证。
文档更新
更新了
conversion/npu_format_cast/docs/aclnnNpuFormatCast.md中 NpuFormatCast 算子 FLOAT4_E1M2 格式转换的规格说明。类型标签