Skip to content

Conversation

@axinging
Copy link
Contributor

@axinging axinging commented Mar 9, 2020

The cases included in this PR may fail when dilation and padding (padding is fixed in another PR: #2993) are no properly applied.

Currently there is only one (fused)conv2d test case, "throws when both stride and dilation are greater than 1", whose strides are [2, 1], and filter size is 2x2, with valid padding. And this case can not capture the dilation and padding misuse very well.

This PR adds stride [2,2] and filter 3x3, with same padding. The pattern is originated from handpose model (https://github.com/tensorflow/tfjs-models/tree/master/handpose). Noted, to make these case pass on WebGPU backend, PR #2993 should also be applied.

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


This change is Reviewable

@axinging axinging changed the title Add stride 2 and filter 3x3 conv2d test case Add stride 2 filter 3x3 same padding conv2d test case Mar 10, 2020
@axinging axinging changed the title Add stride 2 filter 3x3 same padding conv2d test case Fix dilation and add stride 2 filter 3x3 same padding conv2d test case Apr 13, 2020
@axinging axinging changed the title Fix dilation and add stride 2 filter 3x3 same padding conv2d test case Fix dilation and add stride 2 filter 3x3 same conv2d test case Apr 13, 2020
@axinging
Copy link
Contributor Author

@annxingyuan PTAL.
This PR and the padding PR(#2993) is one of the key reason why the handpose model fail.

@axinging axinging changed the title Fix dilation and add stride 2 filter 3x3 same conv2d test case [WIP] Fix dilation and add stride 2 filter 3x3 same conv2d test case Apr 14, 2020
@axinging axinging changed the title [WIP] Fix dilation and add stride 2 filter 3x3 same conv2d test case [webgpu] Fix dilation and add stride 2 filter 3x3 same conv2d test case Apr 14, 2020
Copy link
Contributor

@annxingyuan annxingyuan 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 @axinging ! Sorry for the massive delay!

@annxingyuan annxingyuan merged commit 8f5494c into tensorflow:master Apr 18, 2020
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