@@ -1766,7 +1766,7 @@ def before_blockize(
17661766 T.reads(A[vi, vj])
17671767 T.writes(B[vi, vj])
17681768 B[vi, vj] = A[vi, vj] * T.float32(2)
1769-
1769+
17701770 Create the schedule and do set_scope:
17711771
17721772 .. code-block:: python
@@ -1803,9 +1803,9 @@ def after_blockize(
18031803 ----
18041804 blockize requires there is exactly one block under the given loop and the bindings of the
18051805 block are divisible by the subspace represented by the loops starting at the given loop.
1806-
1806+
18071807 """
1808-
1808+
18091809 return _ffi_api .ScheduleBlockize (self , loop ) # type: ignore # pylint: disable=no-member
18101810
18111811 @type_checked
@@ -1860,7 +1860,7 @@ def mma_desc(a: T.handle, b: T.handle, c: T.handle) -> None:
18601860 A = T.match_buffer(a, (16, 16), align=128, offset_factor=1)
18611861 B = T.match_buffer(b, (16, 16), align=128, offset_factor=1)
18621862 C = T.match_buffer(c, (16, 16), align=128, offset_factor=1)
1863-
1863+
18641864 with T.block("root"):
18651865 vi = T.axis.S(16, 0)
18661866 vj = T.axis.S(16, 0)
@@ -1871,14 +1871,14 @@ def mma_desc(a: T.handle, b: T.handle, c: T.handle) -> None:
18711871 vjj = T.axis.S(16, vj + j)
18721872 vkk = T.axis.R(16, vk + k)
18731873 C[vii, vjj] = C[vii, vjj] + A[vii, vkk] * B[vjj, vkk]
1874-
1875-
1874+
1875+
18761876 @T.prim_func
18771877 def mma_intrin(a: T.handle, b: T.handle, c: T.handle) -> None:
18781878 A = T.match_buffer(a, (16, 16), align=128, offset_factor=1)
18791879 B = T.match_buffer(b, (16, 16), align=128, offset_factor=1)
18801880 C = T.match_buffer(c, (16, 16), align=128, offset_factor=1)
1881-
1881+
18821882 with T.block("root"):
18831883 vi = T.axis.S(16, 0)
18841884 vj = T.axis.S(16, 0)
@@ -1977,12 +1977,13 @@ def after_tensoirze(
19771977 dtype="handle",
19781978 )
19791979 )
1980-
1980+
19811981 """
19821982 if isinstance (tensor_intrin , str ):
19831983 tensor_intrin = String (tensor_intrin )
19841984 _ffi_api .ScheduleTensorize ( # type: ignore # pylint: disable=no-member
1985- self , loop , tensor_intrin )
1985+ self , loop , tensor_intrin
1986+ )
19861987
19871988 ########## Schedule: Annotation ##########
19881989
0 commit comments