Skip to content

Commit

Permalink
[FIX][TIR] Remove unused code and fix typo in storage_align (#9583)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored Nov 25, 2021
1 parent d6fe9a3 commit 0754c86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion python/tvm/tir/schedule/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ def before_storage_align(a: T.handle, c: T.handle) -> None:
sch.storage_align(sch.get_block("B"), buffer_index=0, axis=0, factor=128, offset=1)
print(sch.mod["main"].script())
After applying rfactor, the IR becomes:
After applying storage_align, the IR becomes:
.. code-block:: python
Expand Down
1 change: 0 additions & 1 deletion src/tir/schedule/primitive/block_annotate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ void StorageAlign(ScheduleState self, const StmtSRef& block_sref, int buffer_ind
GetRef<Block>(block_ptr));

// Step 2: Update the annotation value
// Array<Array<Integer>> buffer_storage_align = storage_align_annotation[buffer_index];
bool found = false;
StorageAlignTuple new_storage_align_tuple{Integer(buffer_index), Integer(axis), Integer(factor),
Integer(offset)};
Expand Down

0 comments on commit 0754c86

Please sign in to comment.