-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
Thanks for your contribution! |
✅ This PR's description meets the template requirements! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@luotao1 Could you please start your review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
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 |
There was a problem hiding this comment.
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
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.