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

webgpu: Use outShapeStrides in more places #4967

Merged
merged 3 commits into from Apr 27, 2021

Conversation

qjia7
Copy link
Collaborator

@qjia7 qjia7 commented Apr 22, 2021

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


This change is Reviewable

@google-cla google-cla bot added the cla: yes label Apr 22, 2021
@qjia7
Copy link
Collaborator Author

qjia7 commented Apr 23, 2021

@axinging @xhcao @haoyunfeix @gyagp, PTAL

case 2:
snippet += `
int getOutputFlatIndex(ivec2 coords) {
return int(dot(coords, ivec2(outShapeStrides, 1.)));
Copy link
Contributor

Choose a reason for hiding this comment

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

LTGM.
nit, the "1." can be "1"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@qjia7
Copy link
Collaborator Author

qjia7 commented Apr 26, 2021

@lina128 @jinjingforever @kainino0x Please take a look, thanks.

@qjia7 qjia7 merged commit 8a7c919 into tensorflow:master Apr 27, 2021
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.

None yet

4 participants