已合并
[feat]TensorTo support preserve_format consistent with GPU #35353
[feat]TensorTo support preserve_format consistent with GPU #35353
已合并
culechan创建于 5月12日
culechan
culechan成员
5月12日

【合入来源】

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

【修改方案】

1、NPU上tensorto支持preserve_format模式。行为逻辑上对齐pytorch原生框架
2、增加preserve_format模式相关的测试用例

【资料变更】

不涉及,原生API表格中未体现这部分内容

【接口变更】

Tensor.to默认使用且支持preserve_format模式

【功能验证】

image.png
image.png

【CheckList】

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

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 culechan 的贡献)
culechanculechan成员
5月12日 创建了 pull request,commit 2724bf8d
ascend-robotascend-robot成员
5月12日 添加了label:stat/needs-squash
ascend-robot
ascend-robot成员
5月12日 评论:

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, ffmh (2/2) htchu (1/1)
test htchu, probiotics_53, ffmh (3/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

culechan, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
5月12日 添加了label:ascend-cla/yes
此处折叠了76条消息 查看更多
ffmh
ffmh成员
5月13日 评论:

/lgtm

likedislike
htchu成员
5月13日 评论:

/approve

likedislike
ascend-robotascend-robot成员
5月13日 添加了label:approvedlgtm
ascend-robot
ascend-robot成员
5月13日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: htchu.
Reviewers who wrote a comment of /lgtm are: ffmh, htchu, probiotics_53.

likedislike
ascend-robotascend-robot成员
5月13日 合入了pull request