Skip to content

Conversation

@DanielSun11
Copy link
Contributor

@DanielSun11 DanielSun11 commented Oct 31, 2025

PR Category

User Experience

PR Types

Bug fixes

Description

修复 test_stack_extension_api在bfloat16 数据类型转numpy类型时出现的问题。

问题:

bfloat16数据类型调用numpy返回的是用uint16存储的内存布局,而不是直接以数值的形式等价转换。因此比较时需要采用同样的numpy格式进行比较。

@paddle-bot
Copy link

paddle-bot bot commented Oct 31, 2025

你的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.

@tianshuo78520a tianshuo78520a merged commit a9319a2 into PaddlePaddle:develop Nov 3, 2025
112 of 115 checks passed
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.

2 participants