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

[Relay] InferCorrectLayout for strided_slice & min_num_branches option in CombineParallelConv2D #2961

Merged
merged 3 commits into from
Apr 9, 2019

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Apr 4, 2019

In AlterOpLayout, rewrite attributes of strided_slice if packed layout (e.g. NCHW4c) is used. The begin and end are divided by the factor of sub-axis.
This allows the expression after CombineParallelConv2D transformation to use packed layout.
An option min_num_branches is added to CombineParallelConv2D to control when to apply the pass according to performance issue in #2827

cc @masahi @kevinthesun @yzhliu

@vinx13 vinx13 force-pushed the feature/strided_slice_alter branch from 4dd40d1 to bd1b8a0 Compare April 4, 2019 04:48
@vinx13 vinx13 changed the title [Relay] InferCorrectLayout for strided_slice [Relay] InferCorrectLayout for strided_slice & min_num_branches option in CombineParallelConv2D Apr 4, 2019
@vinx13 vinx13 force-pushed the feature/strided_slice_alter branch from 89798fd to 1517d5f Compare April 9, 2019 02:30
@yzhliu yzhliu merged commit 5d70b00 into apache:master Apr 9, 2019
@yzhliu
Copy link
Member

yzhliu commented Apr 9, 2019

Thanks! @vinx13

wweic pushed a commit to wweic/tvm that referenced this pull request Apr 10, 2019
…n in CombineParallelConv2D (apache#2961)

* [Relay] InferCorrectLayout for strided_slice

* Add min_num_branches option to CombineParallelConv2D

* Return undef if original layout contains splitted axes
wweic pushed a commit to neo-ai/tvm that referenced this pull request Apr 11, 2019
…n in CombineParallelConv2D (apache#2961)

* [Relay] InferCorrectLayout for strided_slice

* Add min_num_branches option to CombineParallelConv2D

* Return undef if original layout contains splitted axes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants