Skip to content

Conversation

@yidawang
Copy link
Contributor

@yidawang yidawang commented Oct 7, 2019

move the number of nodes checking in op fusion up to the dom tree level, so that the fusion won't be halted in the middle.

@MarisaKirisame @kevinthesun @zhiics

@tqchen tqchen added the status: need test case need test cases to cover the change label Oct 7, 2019
Copy link
Member

@zhiics zhiics left a comment

Choose a reason for hiding this comment

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

I saw the previous version would fail if we happen to stop fusing at tuples.

@MarisaKirisame
Copy link
Contributor

@zhiics there is nothing special for tuple. It fail for other cases too - in mergefromto, the groups and functions that will generate is already defined, and it must merge at that point, or stuff will goes out of scope.

@yidawang
Copy link
Contributor Author

yidawang commented Oct 7, 2019

@tqchen What kind of test case is in your mind?

@tqchen
Copy link
Member

tqchen commented Oct 8, 2019

would be great if there is a regression test that failed the case before the patch

@yidawang
Copy link
Contributor Author

yidawang commented Oct 8, 2019

test case added @tqchen

@zhiics zhiics merged commit 9572d98 into apache:master Oct 10, 2019
@zhiics
Copy link
Member

zhiics commented Oct 10, 2019

Thanks everyone. This is now merged.

@zhiics zhiics added status: accepted and removed status: need test case need test cases to cover the change labels Oct 10, 2019
@yidawang yidawang deleted the op_fuse_fix branch October 10, 2019 20:18
anijain2305 pushed a commit to anijain2305/tvm that referenced this pull request Oct 17, 2019
…che#4074)

* move the number of nodes constraint in op fusion up to the dom tree level

* add test case of limiting the max number of ops to be fused

* uncomment other test cases
wweic pushed a commit to neo-ai/tvm that referenced this pull request Oct 18, 2019
…che#4074)

* move the number of nodes constraint in op fusion up to the dom tree level

* add test case of limiting the max number of ops to be fused

* uncomment other test cases
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.

4 participants