已合并
[Fix] Registe npu_dtype_cast gradient support complex. #17339
liu-jiaweikf创建于 2025年1月15日
[Fix] Registe npu_dtype_cast gradient support complex. #17339
已合并
liu-jiaweikf创建于 2025年1月15日
refs/pull/17339/head合入到master
liu-jiaweikf
2025年1月15日

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:
为 npu_dtype_cast 注册支持在反向中进行 complex 计算,避免 fft 类接口反向计算时抛出异常。

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers:
npu_dtype_cast_backward 中直接调用了自身。npu_dtype_cast 在 A2 上支持 complex64 和 complex128 计算,因此该函数反向也支持复数计算。
针对 A1:
A1 整体不支持创建复数或对复数的计算,因此本修改不影响 A1。
针对 A2 存量场景:
本次修改属于放开校验,先前该场景会直接报错,因此不影响存量场景。

likedislike
Pull Request已成功合入, 合并人@
(感谢 liu-jiaweikf 的贡献)
AAtomGit-Bot
2025年1月15日 添加了 &nbsp; ascend-cla/yes 标签
liu-jiaweikf
2025年1月15日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年1月15日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[4830b26cec7b475ab82a84ead6965bd1]

likedislike
atlasaccount1atlasaccount1
2025年1月15日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月15日 添加了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2025年1月15日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年1月15日 评论:

ut failed

likedislike
liu-jiaweikf
2025年1月16日 评论:

retry

likedislike
atlasaccount1atlasaccount1
2025年1月16日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月16日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1
atlasaccount1
2025年1月16日 评论:

retry 成功!请等待!

likedislike
atlasaccount1atlasaccount1
2025年1月16日 添加了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2025年1月16日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年1月16日 评论:

ut failed

likedislike
liu-jiaweikf
2025年1月16日 评论:

retry

likedislike
atlasaccount1atlasaccount1
2025年1月16日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月16日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1
atlasaccount1
2025年1月16日 评论:

retry 成功!请等待!

likedislike
atlasaccount1atlasaccount1
2025年1月16日 添加了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2025年1月16日 移除了 &nbsp; ci-pipeline-running 标签
Lliu-jiaweikf
2025年1月17日 强制推送 了代码
atlasaccount1atlasaccount1
2025年1月17日 移除了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2025年1月17日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月17日 移除了 &nbsp; ci-pipeline-running 标签
liu-jiaweikf
2025年1月17日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年1月17日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[f849af12ccbb4ddf91601afd77725b4e]

likedislike
atlasaccount1atlasaccount1
2025年1月17日 添加了 &nbsp; ci-pipeline-running 标签
此处折叠了5条事件消息 查看更多
atlasaccount1atlasaccount1
2025年1月20日 移除了 &nbsp; ci-pipeline-running 标签
liu-jiaweikf
2025年1月20日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年1月20日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[7e533cf870d0483cb61791869fd4ac80]

likedislike
atlasaccount1atlasaccount1
2025年1月20日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月20日 添加了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2025年1月20日 移除了 &nbsp; ci-pipeline-running 标签
liu-jiaweikf
2025年1月20日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年1月20日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[a1a24b026c9943749d3353e6f6201def]

likedislike
atlasaccount1atlasaccount1
2025年1月20日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年1月20日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2025年1月20日 添加了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2025年1月20日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年1月20日 评论:
任务名称 状态 详情 日志 出包
codecheck SUCCESS >>> N/A
codecheck_scan SUCCESS >>> N/A
checkerro SUCCESS >>> N/A
codecheck_ftd SUCCESS >>> N/A
Build_X86 SUCCESS >>> >>>
Build_LibTorch SUCCESS >>> >>>
Build_ARM_USE_CXX_ABI SUCCESS >>> >>>
UT_X86_01 SUCCESS >>> N/A
UT_X86_02 SUCCESS >>> N/A
跳过测试用例  
UT失败过  
流水线链接   点此跳转
likedislike
misty-rain-typhoid
2025年1月20日 评论:

/lgtm

likedislike
AAtomGit-Bot
2025年1月20日 添加了 &nbsp; lgtm 标签
dilililiwhy1
2025年1月26日 评论:

/approve

likedislike
AAtomGit-Bot
2025年2月8日 添加了 &nbsp; approved 标签
AAtomGit-Bot
2025年2月8日 合并了Pull Request(通过 API 合并)