Skip to content

Conversation

@manupak
Copy link
Contributor

@manupak manupak commented Jan 17, 2022

Before this commit, microNPU creates PrimFunc as if it accepts constants from the callee. This commit changes the PrimFunc to remove the constants as an argument to PrimFunc as they are not provided from the main function.

@manupak
Copy link
Contributor Author

manupak commented Jan 17, 2022

This is blocked on #9929

@manupak manupak force-pushed the micronpu_remove_constant_primfunc_args branch 3 times, most recently from aaaed60 to e48b784 Compare January 21, 2022 11:03
@manupak manupak mentioned this pull request Jan 21, 2022
@manupak manupak force-pushed the micronpu_remove_constant_primfunc_args branch 2 times, most recently from 220f665 to 9defb94 Compare January 26, 2022 16:00
@manupak manupak marked this pull request as ready for review January 26, 2022 16:02
@manupak
Copy link
Contributor Author

manupak commented Jan 26, 2022

@mbaret a review here is appreciated!

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.

lgtm

@manupak manupak force-pushed the micronpu_remove_constant_primfunc_args branch from c6711f8 to 21bc512 Compare January 27, 2022 23:33
Before this commit, microNPU creates PrimFunc as if
it accepts constants from the callee. This commit
changes the PrimFunc to remove the constants as an
argument to PrimFunc as they are not provided from
the main function.

Change-Id: If1fe2b8bcd9daf73ecabbb7930451de81e6f7e3b
Adjusting unit tests work with no constants args
in the primfunc.

Change-Id: Ic337a9f16bacd8980a10d9b412a3e8c9e7e3beb3
@manupak manupak force-pushed the micronpu_remove_constant_primfunc_args branch from 21bc512 to 74f8cd8 Compare January 28, 2022 10:40
Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mousius Mousius merged commit 7b9fd1e into apache:main Jan 28, 2022
@Mousius
Copy link
Member

Mousius commented Jan 28, 2022

Thanks @manupa-arm / @mbaret - I declare this PR merged! 😸

sunggg pushed a commit to sunggg/tvm that referenced this pull request Jan 29, 2022
Before this commit, microNPU creates PrimFunc as if
it accepts constants from the callee. This commit
changes the PrimFunc to remove the constants as an
argument to PrimFunc as they are not provided from
the main function.
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
Before this commit, microNPU creates PrimFunc as if
it accepts constants from the callee. This commit
changes the PrimFunc to remove the constants as an
argument to PrimFunc as they are not provided from
the main function.
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.

3 participants