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

[Core] Fix bug with pointwise conv2d with packing #2290

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Conversation

dsmilkov
Copy link
Contributor

@dsmilkov dsmilkov commented Oct 29, 2019

BUG

H/T to @nsthorat for identifying the core issue.

Added a unit test to reproduce the bug.

After this fix, PACKED pointwise conv2d matches CPU, however NON-PACKED still doesn't match CPU (unrelated to this bug). Thus, I added a TODO to make the newly added unit test pass for NON-PACKED pointwise.


This change is Reviewable

Copy link
Contributor

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @annxingyuan, @dsmilkov, and @nsthorat)


tfjs-core/src/backends/webgl/webgl_ops_test.ts, line 751 at r1 (raw file):

  it('pointwise conv2d optimization with odd input size', async () => {
    // We do special optimization in the webl backend which avoids an expensive

webgl

@dsmilkov dsmilkov merged commit 1cc70df into master Oct 29, 2019
@dsmilkov dsmilkov deleted the fix-pack-bug branch October 29, 2019 21:36
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.

3 participants