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] Remove primitive attribute from composite function #5014

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

lhutton1
Copy link
Contributor

@lhutton1 lhutton1 commented Mar 9, 2020

Composite functions are wrongly marked as primitive - we may still want to run passes on ops inside the composite function. For example, this will allow the fold constant pass to be run after the merge composite pass has been run.

* A composite function should not be primitive since we still may need to perform passes on it.

Change-Id: If62d06d265234861a6ec0df7749dc1c339c1055c
@comaniac
Copy link
Contributor

comaniac commented Mar 9, 2020

cc @zhiics @mbaret

Copy link
Contributor

@mbaret mbaret left a comment

Choose a reason for hiding this comment

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

This just came about from a misunderstanding of what primitive functions were intended to be. I think a lot of composite functions will still end up needing to be primitive, but they shouldn't be primitive by default. LGTM.

@masahi masahi merged commit a9cfe41 into apache:master Mar 10, 2020
@lhutton1 lhutton1 deleted the remove-primitive branch March 10, 2020 09:50
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Apr 16, 2020
* A composite function should not be primitive since we still may need to perform passes on it.

Change-Id: If62d06d265234861a6ec0df7749dc1c339c1055c
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Apr 17, 2020
* A composite function should not be primitive since we still may need to perform passes on it.

Change-Id: If62d06d265234861a6ec0df7749dc1c339c1055c
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.

5 participants