-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[TIR] Tir constants integration into compilation pipeline #8509
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
Changes from all commits
ce29d83
998fb0e
2e144d0
f539d53
bf3e6f2
083f17b
4bd2946
bae53d7
5ae2012
bcd42e2
1ddc762
7926fe4
2699375
c73b9b7
0447323
aea4331
ef759f9
c5239da
e2c3df6
3818327
66bdcb7
d19ba1b
d452f19
4d8ed0d
d03a5a2
b00ead9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| #include <tvm/tir/function.h> | ||
|
|
||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| namespace tvm { | ||
| namespace tir { | ||
|
|
@@ -601,6 +602,15 @@ TVM_DLL Pass UnifiedStaticMemoryPlanner(); | |
| */ | ||
| TVM_DLL Pass InjectSoftwarePipeline(); | ||
|
|
||
| TVM_DLL Pass BindParams(const Array<runtime::NDArray>& constants); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docs? Also shall we expose this pass to python like we did for all other passes?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @junrushao1994 @d-smirnov -- should we address this nit in a follow up PR if this CI runs good ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either way works for me given it’s just a nit |
||
|
|
||
| /*! | ||
| * \brief Pass to collect tir non-scalar constants into module's 'Constants' attribute. | ||
| * | ||
| * \return The pass. | ||
| */ | ||
| TVM_DLL Pass ExtractPrimFuncConstants(); | ||
|
|
||
| } // namespace transform | ||
| } // namespace tir | ||
| } // namespace tvm | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.