Skip to content

Conversation

@zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Jul 20, 2023

PR types

Bug fixes

PR changes

APIs

Description

Pcard-73362

修复BFLOAT16 Tensor使用float/int/long/index时返回的bug,由于先调用Tensor.numpy()将类型转为np.uint16,此时数据会出错。

@paddle-bot
Copy link

paddle-bot bot commented Jul 20, 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.

Copy link
Contributor

@GuoxiaWang GuoxiaWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhwesky2010 zhwesky2010 changed the title [BUG] fix bug of float/int/long/index Tensor [BUG] fix BFLOAT16 bug of float/int/long/index Tensor Jul 20, 2023
@zhwesky2010 zhwesky2010 changed the title [BUG] fix BFLOAT16 bug of float/int/long/index Tensor [BUG] fix BF16 bug of float/int/long/index Tensor Jul 20, 2023
@zhwesky2010 zhwesky2010 merged commit a4644c5 into PaddlePaddle:develop Jul 26, 2023
wz1qqx pushed a commit to wz1qqx/Paddle that referenced this pull request Jul 31, 2023
zhwesky2010 added a commit that referenced this pull request Aug 28, 2023
Wang-1F pushed a commit to Wang-1F/Paddle that referenced this pull request Aug 30, 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