forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend update, demo scripts. #10
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
75cb0ad
Format and Buffer data structure (#1)
yzh119 d186b7e
[SparseTIR] Constructors and Python Interface for `Axis` and `SparseB…
MasterJH5574 632baa0
[CherryPick][Intrinsic] lower_bound and upper_bound for binary search…
MasterJH5574 85e8283
Fix AxisTree (#3)
yzh119 53c1709
Format and Buffer data structure (#1)
yzh119 3c09a0e
[SparseTIR] Constructors and Python Interface for `Axis` and `SparseB…
MasterJH5574 a3a43f4
fix axis tree
yzh119 e766a44
upd
yzh119 bb912d8
Merge remote-tracking branch 'origin/sparse' into develop
yzh119 1f051e3
Format and Buffer data structure (#1)
yzh119 e08dd33
[SparseTIR] Constructors and Python Interface for `Axis` and `SparseB…
MasterJH5574 a61c9f2
[CherryPick][Intrinsic] lower_bound and upper_bound for binary search…
MasterJH5574 6023a16
Fix AxisTree (#3)
yzh119 9e8c926
[SparseTIR] Add SparseBufferLoad/SparseBufferStore (#5)
MasterJH5574 61f1671
merge
yzh119 d3e1ce6
Format and Buffer data structure (#1)
yzh119 85413f2
[SparseTIR] Constructors and Python Interface for `Axis` and `SparseB…
MasterJH5574 5f88452
[CherryPick][Intrinsic] lower_bound and upper_bound for binary search…
MasterJH5574 933f86f
Fix AxisTree (#3)
yzh119 14f6f92
[SparseTIR] Add SparseBufferLoad/SparseBufferStore (#5)
MasterJH5574 b264051
Merge remote-tracking branch 'origin/sparse' into develop
yzh119 3f96d26
[SparseTIR] Introduce SpIterVar (#6)
MasterJH5574 8bd5f9f
[BugFix] Fix binary search & SpIterVar (#7)
MasterJH5574 fe9610e
[BugFix] Add field `is_reduction` for SpIterVar (#9)
MasterJH5574 eba6a26
Merge remote-tracking branch 'upstream/main' into develop
yzh119 ab9d570
upd
yzh119 5798c08
upd
yzh119 ce51cda
upd
yzh119 9e4832c
Merge branch 'sparse' into develop
yzh119 4968e07
upd
yzh119 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -327,6 +327,28 @@ class BufferStore : public Stmt { | |
| TVM_DEFINE_OBJECT_REF_COW_METHOD(BufferStoreNode); | ||
| }; | ||
|
|
||
| /*! | ||
| * \brief Sparse Block node. | ||
| */ | ||
| class SparseBlockNode : public StmtNode { | ||
| public: | ||
| /*! \brief The sparse iteration variables of the block. */ | ||
| Array<SpIterVar> sp_iter_vars; | ||
| /*! \brief The sparse buffers defined in the block. */ | ||
| Array<SparseBuffer> sp_buffers; | ||
|
Comment on lines
+337
to
+338
Collaborator
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. Aren't all the SparseBuffers defined under the root block of the PrimFunc? |
||
| /*! \brief The body of the block */ | ||
| Stmt body; | ||
|
|
||
| static constexpr const char* _type_key = "tir.SparseBlock"; | ||
| TVM_DECLARE_FINAL_OBJECT_INFO(SparseBlockNode, StmtNode); | ||
| }; | ||
|
|
||
| class SparseBlock : public Stmt { | ||
| public: | ||
| TVM_DEFINE_OBJECT_REF_METHODS(SparseBlock, Stmt, SparseBlockNode); | ||
| }; | ||
|
|
||
|
|
||
| /*! | ||
| * \brief Store value to the high dimension sparse buffer. | ||
| * | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.