已合并
[Fix] Registe npu_dtype_cast gradient support complex. #17339
liu-jiaweikf创建于 2025年1月15日
[Fix] Registe npu_dtype_cast gradient support complex. #17339
已合并
从refs/pull/17339/head合入到master
Pull Request已成功合入, 合并人@
(感谢 liu-jiaweikf 的贡献)2025年1月15日 添加了
ascend-cla/yes
标签
liu-jiaweikf
2025年1月15日 评论:
2025年1月15日 评论:
compile


atlasaccount1
2025年1月15日 评论:
2025年1月15日 评论:
✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[4830b26cec7b475ab82a84ead6965bd1]


2025年1月15日 添加了
ci-pipeline-running
标签
2025年1月15日 添加了
ci-pipeline-failed
标签
2025年1月15日 移除了
ci-pipeline-running
标签
atlasaccount1
2025年1月15日 评论:
2025年1月15日 评论:
ut failed


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


2025年1月16日 添加了
ci-pipeline-running
标签
2025年1月16日 移除了
ci-pipeline-failed
标签
atlasaccount1
2025年1月16日 评论:
2025年1月16日 评论:
retry 成功!请等待!


2025年1月16日 添加了
ci-pipeline-failed
标签
2025年1月16日 移除了
ci-pipeline-running
标签
atlasaccount1
2025年1月16日 评论:
2025年1月16日 评论:
ut failed


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


2025年1月16日 添加了
ci-pipeline-running
标签
2025年1月16日 移除了
ci-pipeline-failed
标签
atlasaccount1
2025年1月16日 评论:
2025年1月16日 评论:
retry 成功!请等待!


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


atlasaccount1
2025年1月17日 评论:
2025年1月17日 评论:
✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[f849af12ccbb4ddf91601afd77725b4e]


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


atlasaccount1
2025年1月20日 评论:
2025年1月20日 评论:
✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[7e533cf870d0483cb61791869fd4ac80]


2025年1月20日 添加了
ci-pipeline-running
标签
2025年1月20日 添加了
ci-pipeline-failed
标签
2025年1月20日 移除了
ci-pipeline-running
标签
liu-jiaweikf
2025年1月20日 评论:
2025年1月20日 评论:
compile


atlasaccount1
2025年1月20日 评论:
2025年1月20日 评论:
✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[a1a24b026c9943749d3353e6f6201def]


2025年1月20日 添加了
ci-pipeline-running
标签
2025年1月20日 移除了
ci-pipeline-failed
标签
2025年1月20日 添加了
ci-pipeline-passed
标签
2025年1月20日 移除了
ci-pipeline-running
标签
atlasaccount1
2025年1月20日 评论:
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失败过 | 否 | ||||
| 流水线链接 | 点此跳转 | ||||


misty-rain-typhoid
2025年1月20日 评论:
2025年1月20日 评论:
/lgtm


2025年1月20日 添加了
lgtm
标签
dilililiwhy1
2025年1月26日 评论:
2025年1月26日 评论:
/approve


2025年2月8日 添加了
approved
标签
2025年2月8日 合并了Pull Request(通过 API 合并)
What type of PR is this?
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 存量场景:
本次修改属于放开校验,先前该场景会直接报错,因此不影响存量场景。