Repository navigation
[INTEL MKL] Added bf16 support for Sparse_Xent_op. - #43920
vishakha-nervana wants to merge 15 commits into
Conversation
|
@penpornk Hello Penporn, Can you please provide review on this PR? Please let me know, if there is any concern. |
|
@vishakha-nervana Can you please resolve conflicts? Thanks! |
penpornk
left a comment
There was a problem hiding this comment.
Thank you for the PR and I'm so sorry for the delay! I have minor comments.
| casted_features = math_ops.cast(np_features, dtypes.bfloat16) | ||
| casted_loss = math_ops.cast(np_loss, dtypes.bfloat16) | ||
| casted_backprop = math_ops.cast(np_backprop, dtypes.bfloat16) |
There was a problem hiding this comment.
Nit: The more standard past participle form of cast is cast, but the name cast_features doesn't make the purpose of the variable as obvious as casted_features...
Can we use np_features_bf16, np_loss_bf16, and np_backprop_bf16?
There was a problem hiding this comment.
This hasn't been addressed yet.
Co-authored-by: Penporn Koanantakool <[email protected]>
Co-authored-by: Penporn Koanantakool <[email protected]>
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
penpornk
left a comment
There was a problem hiding this comment.
Thank you for the changes. There is one unaddressed comment and I have one more nit. Then we should be good to go.
The CLA complaint is because some commits are by [email protected] which is not associated with your github account. Can you try adding this email to your github account (in Settings)? If that doesn't work, please post here that the commits by [email protected] are indeed by you and I can manually override the CLA.
| errors::InvalidArgument( | ||
| "logits and labels must have the same first dimension, " | ||
| "got logits shape ", | ||
| "got logits shape " , |
There was a problem hiding this comment.
Nit: Please remove the extra space before comma.
There was a problem hiding this comment.
@penpornk Please ignore this PR, there have issues with my git config, thats why some changes, do not show up with correct id, I am creating new PR, then I will close this one.
There was a problem hiding this comment.
Got it. Please tag me in the new PR when it's ready. Thank you very much!
| casted_features = math_ops.cast(np_features, dtypes.bfloat16) | ||
| casted_loss = math_ops.cast(np_loss, dtypes.bfloat16) | ||
| casted_backprop = math_ops.cast(np_backprop, dtypes.bfloat16) |
There was a problem hiding this comment.
This hasn't been addressed yet.
Added bf16 support for Sparse_Xent_op.