wrongtest-intellif commented on code in PR #15274:
URL: https://github.com/apache/tvm/pull/15274#discussion_r1269325874
##########
tests/python/unittest/test_tir_schedule_blockize.py:
##########
@@ -354,5 +355,168 @@ def after_blocks_blockize(
verify_trace_roundtrip(sch=s, mod=blocks_func)
+def test_blockize_blocks_v1():
Review Comment:
Could we depict what this script do, is it an auto-generated script or a
certain cv algorithm?
##########
tests/python/unittest/test_tir_schedule_blockize.py:
##########
@@ -354,5 +355,168 @@ def after_blocks_blockize(
verify_trace_roundtrip(sch=s, mod=blocks_func)
+def test_blockize_blocks_v1():
+ @T.prim_func
+ def blocks_func(concat_mat: T.Buffer((9, 9), "float32"), out: T.Buffer((3,
3), "float32")):
+ temp_buffer = T.alloc_buffer((18,))
+ j = T.alloc_buffer((1,), "int32")
+ for m, i in T.grid(3, 9):
+ j[0] = 1
+ for k in range(9):
+ if concat_mat[i, i] == T.float32(0) and i + j[0] < 9:
+ for iter in range(18):
+ with T.block("auto_0"):
+ poly_m = T.axis.opaque(3, m)
+ poly_i = T.axis.opaque(9, i)
+ poly_k = T.axis.opaque(9, k)
+ poly_iter = T.axis.spatial(18, iter)
+ T.reads(
+ concat_mat[
+ T.min(poly_i, poly_i + j[0]) :
T.min(poly_i, poly_i + j[0])
Review Comment:
what does the prefix "poly_" means?
##########
src/tir/schedule/primitive/blockize_tensorize.cc:
##########
@@ -565,58 +569,230 @@ StmtSRef Blockize(ScheduleState self, const StmtSRef&
loop_sref, bool preserve_u
return result;
}
-BlockRealize BlockizeBlocks(const ScheduleState& self, const Array<StmtSRef>&
block_srefs,
- const StmtSRef& lca, Map<Block, Block>*
block_sref_reuse,
- bool preserve_unit_iters) {
+class CollectSubstInfo : public StmtVisitor {
Review Comment:
Please depict what this visitor do in comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]