Skip to content

Commit 0b987da

Browse files
committed
fixup! [TIR] Add schedule primitive TransformBlockLayout
Fix doc
1 parent 936b864 commit 0b987da

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

include/tvm/tir/schedule/schedule.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,8 @@ class ScheduleNode : public runtime::Object {
550550
* \details The block iters and the block body are transformed by the given index_map.
551551
* Outer loops corresponding to each new block iter are regenerated.
552552
* The index_map is required to be bijective affine since we need its inverse mapping.
553-
* \param self The state of the schedule
554-
* \param block_sref The block sref that refers to the block to be transformed
555-
* \param affine_index_map The transformation to apply.
553+
* \param block_rv The block to be transformed
554+
* \param index_map The transformation to apply.
556555
*/
557556
virtual void TransformBlockLayout(const BlockRV& block_rv, const IndexMap& index_map) = 0;
558557

python/tvm/tir/schedule/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ def transform_block_layout(
22962296
22972297
Parameters
22982298
----------
2299-
block_rv : BlockRV
2299+
block : BlockRV
23002300
The block to be transformed
23012301
23022302
index_map : Union[IndexMap, Callable]

src/tir/schedule/primitive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ TVM_DLL void TransformLayout(ScheduleState self, const StmtSRef& block_sref, int
449449
* The index_map is required to be bijective affine since we need its inverse mapping.
450450
* \param self The state of the schedule
451451
* \param block_sref The block sref that refers to the block to be transformed
452-
* \param affine_index_map The transformation to apply.
452+
* \param index_map The transformation to apply.
453453
*/
454454
TVM_DLL void TransformBlockLayout(ScheduleState self, const StmtSRef& block_sref,
455455
const IndexMap& index_map);

src/tir/schedule/primitive/layout_transformation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void TransformBlockLayout(ScheduleState self, const StmtSRef& block_sref,
405405
Array<IterVar> new_block_iters; // new block iters
406406
Array<PrimExpr> new_block_vars; // iter_var->var of new block iters
407407
for (size_t i = 0; i < index_map->final_indices.size(); ++i) {
408-
Var new_block_var{"bv" + std::to_string(i), DataType::Int(32)};
408+
Var new_block_var{"v" + std::to_string(i), DataType::Int(32)};
409409
new_block_vars.push_back(new_block_var);
410410
IterVarType iter_type = DetectNewBlockIterType(transformed_block_iters[i], block_iter_type);
411411
if (iter_type == kOpaque) {

0 commit comments

Comments
 (0)