-
Notifications
You must be signed in to change notification settings - Fork 2k
[core] Support explicit padding in tf.conv. #3427
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
Conversation
pyu10055
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 12 of 12 files at r1.
Reviewable status:complete! 1 of 1 approvals obtained (waiting on @annxingyuan and @pyu10055)
tfjs-core/src/ops/conv_util.ts, line 22 at r1 (raw file):
type PadType = 'SAME'|'VALID'|'NUMBER'|'EXPLICIT'; // For NHWC should be in the following form:
Is the case that we only support NHWC format not the NCHW?
annxingyuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 1 of 1 approvals obtained (waiting on @pyu10055)
tfjs-core/src/ops/conv_util.ts, line 22 at r1 (raw file):
Previously, pyu10055 (Ping Yu) wrote…
Is the case that we only support NHWC format not the NCHW?
Ah, thanks for catching that. I looked at the validation logic for conv1d and assumed we only allowed NHWC, but in conv2d we allow NCHW. I've added support for NCHW explicit padding.
This fixes #3311
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is