已合并
trans npuformat cast from aclop to aclnn and fix 1d npu format cast fallback #38058
shawnylee233创建于 6月10日
trans npuformat cast from aclop to aclnn and fix 1d npu format cast fallback #38058
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 shawnylee233 的贡献)6月10日 创建了 pull request,commit df6177cb
ascend-robot
6月10日 评论:
6月10日 评论:
6月10日 添加了label:stat/needs-squash
6月10日 添加了label:ascend-cla/yes
ascend-robot
6月10日 评论:
6月10日 评论:
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 |
|---|---|---|
| repo-Ascend/pytorch | ✅ htchu, chengpeng25 (2/2) | ✅ htchu (1/1) |
| test | ✅ htchu, chengpeng25 (2/2) | ✅ htchu (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
shawnylee233, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了84条消息 查看更多
6月11日 关闭了关联的issue
6月11日 合入了pull request
ascend-robot
6月11日 评论:
6月11日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
6月11日 评论:
6月11日 评论:
In response to this:
/sync master v2.9.0 v2.10.0 v2.11.0 v2.12.0 v2.7.1-26.1.0 v2.9.0-26.1.0 v2.12.0-26.1.0 v2.11.0-26.1.0 v2.10.0-26.1.0
同步操作执行结果:
| Branch | Status | Pull Request |
|---|---|---|
| master | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.9.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.10.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.11.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.12.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.7.1-26.1.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.9.0-26.1.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.12.0-26.1.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.11.0-26.1.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 | |
| v2.10.0-26.1.0 | 同步失败:请手动创建 PR 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况 |


ascend-robot
6月11日 评论:
6月11日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10516 [ commitID:a2cd6594 ] 运行失败


【合入来源】
【修改方案】
npu_format_cast 在 CANN >= 9.1.0 的 A2/910B、A3/910C 上优先切换到 aclnn 实现并保留 aclop fallback,同时新增customize_dtype 支持以正确推导 NZ storage shape 和 C0
【资料变更】
【接口变更】
torch_npu.npu_format_cast、torch_npu.npu_format_cast_ 及底层 _npu_format_cast 新增可选 customize_dtype、input_dtype 参数,兼容原有调用方式
【功能验证】
已在 A2/910B、A3/910C、A5/950 及 FakeTensor 场景完成用例验证,覆盖 ND/NZ 正反向转换、2D/3D、fp16/bf16/float32/int8/int32、C0=8/16/32、round-trip 精度、inplace/tensor 重载和 meta infershape
【CheckList】