Skip to content

[Bugfix] Recover original layout when alter_layout function return None#2101

Merged
tqchen merged 2 commits intoapache:masterfrom
yzhliu:fix_layout_pass
Nov 15, 2018
Merged

[Bugfix] Recover original layout when alter_layout function return None#2101
tqchen merged 2 commits intoapache:masterfrom
yzhliu:fix_layout_pass

Conversation

@yzhliu
Copy link
Copy Markdown
Member

@yzhliu yzhliu commented Nov 14, 2018

Without the fix, test_alter_func_return_none() would fail, produce the same result as test_consecutive_alter_layout(). Please help to review @merrymercy @kevinthesun


g = g.apply("AlterOpLayout")

# pool1 get replaced - output layout of pool1 is not recorded
Copy link
Copy Markdown
Contributor

@kevinthesun kevinthesun Nov 14, 2018

Choose a reason for hiding this comment

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

I think it would be helpful to have a tutorial briefly introducing layout related passes in tvm, making it easier for people to understand and debug. This pr itself lgtm.

@tqchen tqchen merged commit a396897 into apache:master Nov 15, 2018
@tqchen
Copy link
Copy Markdown
Member

tqchen commented Nov 15, 2018

Thanks, @kevinthesun @yzhliu , this is now merged

FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
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.

3 participants