Merged
feat(NpuFormatCast): NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型格式转换支持 #3340
zhoushaolongAdd on Jun 15
feat(NpuFormatCast): NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型格式转换支持 #3340
Merged
zhoushaolongAdd on Jun 15
zhoushaolong
Jun 15

描述

为 NpuFormatCast 算子新增 FLOAT4_E1M2 数据类型的格式转换支持。在 aclnnNpuFormatCast.md 文档中,分别在 aclnnNpuFormatCastCalculateSizeAndFormat 和 aclnnNpuFormatCastGetWorkspaceSize 两个接口的支持规格表中,添加 FLOAT4_E1M2 对应的 ND→FRACTAL_NZ 格式转换行。

关联的Issue

  • #1972

测试

新增 FLOAT4_E1M2 dtype 的 ND→NZ 格式转换规格,需通过算子规格审查验证。

文档更新

更新了 conversion/npu_format_cast/docs/aclnnNpuFormatCast.md 中 NpuFormatCast 算子 FLOAT4_E1M2 格式转换的规格说明。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for zhoushaolong's contribution.)
zhoushaolongzhoushaolong
Jun 15 Created pull request, commit e3cb580a
CANN-robotCANN-robotCollaborators
Jun 15 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
zhoushaolong
zhoushaolong
Jun 15 Comments:

compile

likedislike
zhoushaolongzhoushaolong
Jun 15 Pre merge succeeded (commit_id: 59432795fb8c47a8a2be91e56f671b5add4803e3)
CANN-robotCANN-robotCollaborators
Jun 15 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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执行结束

likedislike
CANN-robot
CANN-robotCollaborators
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执行结束

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

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
zhoushaolong
zhoushaolong
Jun 16 Comments:

compile

likedislike
zhoushaolongzhoushaolong
Jun 16 Pre merge succeeded (commit_id: e7b2e8005d09aae3825560dff2d42701d1335435)
zhoushaolongzhoushaolong
Jun 16 Modify description of pull request
CANN-robotCANN-robotCollaborators
Jun 16 Removed label: api-check-pass
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
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执行结束

likedislike
CANN-robot
CANN-robotCollaborators
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执行结束

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Added label: api-check-pass
CANN-robotCANN-robotCollaborators
Jun 16 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-passed
zhouwenfang
zhouwenfangCollaborators
Jun 16 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Added label: approved
zl_hw
zl_hwCollaborators
Jun 16 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Added label: lgtm
CANN-robotCANN-robotCollaborators
Jun 16 Closed associated issue
CANN-robotCANN-robotCollaborators
Jun 16 Merged pull request