Skip to content

Conversation

@wangyuwen1999
Copy link
Contributor

copysign在int8情况下,针对-128转为128出现上溢现象,转换结果仍为-128。与torch不同。
torch会将结果类型转为float32,避免了上溢。而paddle不涉及类型转换,导致上溢,所以,需要去除int8类型的测例。

@paddle-bot
Copy link

paddle-bot bot commented Jul 31, 2025

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants