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

Support NHWC compute format in concat and conv's pad op. #1065

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CyanHillFox
Copy link

This MR add NHWC support to Concat operator, and Pad operator created by Conv.

Original behaviour

Concat

Concat didn't support NHWC format, so tensors must be transposed back to NCHW before concat, and may be converted to NHWC to do other compuation.
image

Pad of Conv

When explicit padding is used in Conv, the pad was done before input tensor was transposed, which also leads to a pair of unresolvable Transpose operators.
image

Changes

This MR added NHWC support to concat operator, and pad was done on transposed input of conv.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant