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

Added LSTM BF16 and fixed GRU BF16 #31234

Merged
merged 33 commits into from
Mar 4, 2021
Merged

Conversation

jakpiase
Copy link
Contributor

@jakpiase jakpiase commented Feb 25, 2021

PR types

New features

PR changes

OPs

Describe

Added support for LSTM bf16. Added support for bf16 and fp32 weights and h0 memory datatypes. In future int8 will be supported as weights datatype too.

@jakpiase jakpiase changed the title New bf Added LSTM BF16 and fixed GRU BF16 Feb 25, 2021
@paddle-bot-old
Copy link

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

@paddle-bot-old
Copy link

paddle-bot-old bot commented Feb 25, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@jczaja jczaja self-requested a review February 25, 2021 15:18
@jczaja jczaja added the Intel label Feb 25, 2021
@jakpiase
Copy link
Contributor Author

jakpiase commented Mar 3, 2021

@jczaja @wojtuss Could you please take a look?

Copy link
Contributor

@jczaja jczaja left a comment

Choose a reason for hiding this comment

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

LGTM

@jczaja
Copy link
Contributor

jczaja commented Mar 3, 2021

@luotao1 Could you please start your review?

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 5b4f8aa into PaddlePaddle:develop Mar 4, 2021

if self.with_bias:
self.inputs['Bias'] = bias

if self.with_h0:
self.inputs['H0'] = h0_bf16
if self.weights_dtype == 'bf16':
self.inputs['H0'] = h0_bf16
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @jakpiase , you use variable h0_bf16 before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants