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

[wasm] Fix offset calculation in Conv2DBackpropInput #5518

Merged
merged 5 commits into from Aug 25, 2021

Conversation

jinjingforever
Copy link
Collaborator

@jinjingforever jinjingforever commented Aug 20, 2021

The previous implementation didn't take into account of various stride values. Fixed now (based on CPU implementation).

Also added a test to cover the case where inDepth is not 1 (which will trigger the bug).

Fixes #5390

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 Aug 20, 2021
@jinjingforever
Copy link
Collaborator Author

Now the program submitted by the user in #5390 works well with the WASM backend:

Screenshot from 2021-08-20 14-14-01

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Thanks for debugging and fixing the problem, FYI you new test seems to cause tfjs-node implementation to fail.

Reviewable status: 0 of 1 approvals obtained

Copy link
Collaborator Author

@jinjingforever jinjingforever left a comment

Choose a reason for hiding this comment

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

Updated test which works in tfjs-node. Also double checked that the test would fail before this PR for the WASM backend. Also updated package.json in tfjs-node.

Reviewable status: 0 of 1 approvals obtained

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, 2 of 2 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@jinjingforever jinjingforever merged commit e249336 into master Aug 25, 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.

Different output in wasm vs webgl backend
2 participants