Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddle.pow与torch.pow计算不一致 #54314

Closed
longranger2 opened this issue Jun 2, 2023 · 3 comments
Closed

paddle.pow与torch.pow计算不一致 #54314

longranger2 opened this issue Jun 2, 2023 · 3 comments
Assignees
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/following-up 跟进中 type/bug-report 报bug

Comments

@longranger2
Copy link
Contributor

longranger2 commented Jun 2, 2023

bug描述 Describe the Bug

torch.pow(x, y),如果指数是负数,是不支持x是int的

image

而paddle.pow(x, y)此时是可以进行计算的

image

其他补充信息 Additional Supplementary Information

No response

@paddle-bot paddle-bot bot added the PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc label Jun 2, 2023
@luotao1
Copy link
Contributor

luotao1 commented Jun 3, 2023

同时 paddle.pow 在 指数是负数的情况下,会出现精度损失的情况:#51395 (comment)

@Bobholamovic
Copy link
Member

bug描述 Describe the Bug

torch.pow(x, y),如果指数是负数,是不支持x是int的

image

而paddle.pow(x, y)此时是可以进行计算的

image ### 其他补充信息 Additional Supplementary Information _No response_

你好,通过paddle.to_tensor([2], dtype='float32')创建的Tensor数据类型为float32,这与题目中的文字表述(以及torch的对应例子)不符。

@paddle-bot paddle-bot bot added status/following-up 跟进中 and removed status/new-issue 新建 labels Jun 6, 2023
@paddle-bot paddle-bot bot closed this as completed Jun 11, 2024
Copy link

paddle-bot bot commented Jun 11, 2024

Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/following-up 跟进中 type/bug-report 报bug
Projects
None yet
Development

No branches or pull requests

4 participants