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

[oneDNN] Enable bf16 for SparseSoftmaxCrossEntropyWithLogits #52347

Merged

Conversation

gaurides
Copy link
Contributor

No description provided.

@google-ml-butler google-ml-butler bot added the size:M CL Change Size: Medium label Oct 12, 2021
@google-cla google-cla bot added the cla: yes label Oct 12, 2021
@rthadur rthadur requested a review from reedwm October 12, 2021 18:35
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Oct 12, 2021
@rthadur rthadur added this to Assigned Reviewer in PR Queue via automation Oct 12, 2021
Copy link
Member

@penpornk penpornk left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

Comment on lines 76 to 85
BM_SparseXentDev(8, 1000000, cpu, float, DT_FLOAT);

BM_SparseXentDev(16, 10000, cpu);
BM_SparseXentDev(16, 100000, cpu);
BM_SparseXentDev(16, 10000, cpu, float, DT_FLOAT);
BM_SparseXentDev(16, 100000, cpu, float, DT_FLOAT);

BM_SparseXentDev(32, 10000, cpu);
BM_SparseXentDev(32, 100000, cpu);
BM_SparseXentDev(32, 10000, cpu, float, DT_FLOAT);
BM_SparseXentDev(32, 100000, cpu, float, DT_FLOAT);

BM_SparseXentDev(64, 10000, cpu);
BM_SparseXentDev(64, 100000, cpu);
BM_SparseXentDev(64, 10000, cpu, float, DT_FLOAT);
BM_SparseXentDev(64, 100000, cpu, float, DT_FLOAT);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe refactor this to a macro? E.g.,
BM_SparseXentDev_CPU(C_TYPE, TF_TYPE) and call

BM_SparseXentDev_CPU(float, DT_FLOAT)
BM_SparseXentDev_CPU(bfloat16, DT_BFLOAT16)

instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that sounds good. Submitted the requested change. Thanks!

PR Queue automation moved this from Assigned Reviewer to Reviewer Requested Changes Oct 13, 2021
@penpornk penpornk removed the awaiting review Pull request awaiting review label Oct 13, 2021
Copy link
Member

@penpornk penpornk left a comment

Choose a reason for hiding this comment

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

Thank you for the changes!

PR Queue automation moved this from Reviewer Requested Changes to Approved by Reviewer Oct 13, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Oct 13, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Oct 13, 2021
@copybara-service copybara-service bot merged commit d415e41 into tensorflow:master Oct 14, 2021
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes size:M CL Change Size: Medium
Projects
PR Queue
  
Approved by Reviewer
Development

Successfully merging this pull request may close these issues.

None yet

4 participants