Skip to content

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Nov 23, 2023

PR types

Others

PR changes

Others

Description

Pcard-67742

修改复数类型的data transforme逻辑,当kernel key为复数类型时,如果输入Tensor为int32和int64数据类型,默认将不再转换为复数类型。

此处修改主要是考虑到诸如gather_ndindex参数本身只表示索引信息,无需自动提升为复数类型。而复数类型也只有complex和complex两种,从int转到float类型的complex从语义上讲也有一定的问题,所以此PR将关闭默认自动提升int类型为复数类型的data transform。

Copy link

paddle-bot bot commented Nov 23, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@zyfncg zyfncg merged commit 9b859d4 into PaddlePaddle:develop Nov 24, 2023
@zyfncg zyfncg deleted the modify_dtype_transform branch November 24, 2023 02:59
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants