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

Set willReadFrequently to true for GPU correctness test #6665

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

gyagp
Copy link

@gyagp gyagp commented Jul 22, 2022

If willReadFrequently is set to true, 2D canvas will always be backed by
CPU. Otherwise, it will be backed by GPU in first call, and backed by
CPU in the rest calls.
For CPU backends, including CPU and WASM, we set this to true for
perfomance. So to compare the results of GPU with CPU, we need to ensure
it's always backed by CPU.

BUG: #6664

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

If willReadFrequently is set to true, 2D canvas will always be backed by
CPU. Otherwise, it will be backed by GPU in first call, and backed by
CPU in the rest calls.
For CPU backends, including CPU and WASM, we set this to true for
perfomance. So to compare the results of GPU with CPU, we need to ensure
it's always backed by CPU.

BUG: tensorflow#6664
@gyagp gyagp requested a review from qjia7 July 22, 2022 08:14
@gyagp
Copy link
Author

gyagp commented Jul 22, 2022

@axinging PTAL

Copy link
Contributor

@qjia7 qjia7 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@qjia7 qjia7 requested review from pyu10055 and lina128 July 22, 2022 08:29
@gyagp gyagp requested a review from mattsoulanille July 22, 2022 10:51
Copy link
Collaborator

@lina128 lina128 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 fix and detailed PR description!

Reviewable status: :shipit: complete! 2 of 1 approvals obtained (waiting on @mattsoulanille and @pyu10055)

@lina128 lina128 merged commit 9afbd86 into tensorflow:master Jul 22, 2022
@gyagp gyagp deleted the willreadfrequently branch July 23, 2022 01:07
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.

3 participants