Skip to content

[microNPU] Removing constant args from PrimFunc#9951

Merged
Mousius merged 2 commits into
apache:mainfrom
manupak:micronpu_remove_constant_primfunc_args
Jan 28, 2022
Merged

[microNPU] Removing constant args from PrimFunc#9951
Mousius merged 2 commits into
apache:mainfrom
manupak:micronpu_remove_constant_primfunc_args

Conversation

@manupak

@manupak manupak commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

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

manupak commented Jan 17, 2022

Copy link
Copy Markdown
Contributor Author

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

manupak commented Jan 26, 2022

Copy link
Copy Markdown
Contributor Author

@mbaret a review here is appreciated!

@mbaret mbaret left a comment

Copy link
Copy Markdown
Contributor

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

@Mousius Mousius left a comment

Copy link
Copy Markdown
Member

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

Mousius commented Jan 28, 2022

Copy link
Copy Markdown
Member

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