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

[bf16] support printing bf16 tensor #39375

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

zhiqiu
Copy link
Contributor

@zhiqiu zhiqiu commented Feb 7, 2022

PR types

New features

PR changes

APIs

Describe

Related #39370

For example, bf16 tensor with data [[1,5, 1],[0, 0]]

  • before
Tensor(shape=[2, 2], dtype=uint16, place=Place(gpu:0), stop_gradient=True,
       [[16320, 16256],
        [0    , 0    ]])
  • after
Tensor(shape=[2, 2], dtype=bfloat16, place=Place(gpu:0), stop_gradient=True,
       [[1.50000000, 1.        ],
        [0.        , 0.        ]])

@paddle-bot-old
Copy link

paddle-bot-old bot commented Feb 7, 2022

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@zhangbo9674 zhangbo9674 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhiqiu zhiqiu merged commit f57b21e into PaddlePaddle:develop Feb 8, 2022
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