Biubiubiu12 commented on code in PR #15274:
URL: https://github.com/apache/tvm/pull/15274#discussion_r1270158281
##########
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:
Just a way of naming.
--
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]