已合并
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
已合并
shawnylee233创建于 6月10日
shawnylee233成员
6月10日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

npu_format_cast 在 CANN >= 9.1.0 的 A2/910B、A3/910C 上优先切换到 aclnn 实现并保留 aclop fallback,同时新增customize_dtype 支持以正确推导 NZ storage shape 和 C0

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

【接口变更】

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】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 shawnylee233 的贡献)
Sshawnylee233成员
6月10日 创建了 pull request,commit df6177cb
ascend-robotascend-robot成员
6月10日 添加了label:stat/needs-squash
ascend-robotascend-robot成员
6月10日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
此处折叠了84条消息 查看更多
ascend-robotascend-robot成员
6月11日 关闭了关联的issue
ascend-robotascend-robot成员
6月11日 合入了pull request
ascend-robot
ascend-robot成员
6月11日 评论:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
ascend-robot
ascend-robot成员
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

@shawnylee233

同步操作执行结果:

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 进行同步,我们会继续完善分支之间同步操作,尽量避免同步失败的情况
likedislike
ascend-robot
ascend-robot成员
6月11日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10516 [ commitID:a2cd6594 ] 运行失败
likedislike