hamzaqureshi5 opened a new issue, #18215:
URL: https://github.com/apache/tvm/issues/18215

   Incorrect example for Schedule.decompose_reduction at: 
https://tvm.apache.org/docs/reference/api/python/tir/schedule.html#tvm.tir.schedule.Schedule.decompose_reduction
   
   @T.prim_func
   def before_decompose(a: ty.handle, c: ty.handle) -> None:
       A = tir.match_buffer(a, [128, 128])
       B = tir.match_buffer(b, [128, 128])
       C = tir.match_buffer(c, [128, 128])
       for i, j, k in tir.grid(128, 128, 128):
           with tir.block([128, 128, tir.reduce_axis(0, 128)], "C") as [vi, vj, 
vk]:
               with tir.init():
                   C[vi, vj] = 0.0
               C[vi, vj] = C[vi, vj] + A[vi, vk] * B[vj, vk]
   
   


-- 
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]

Reply via email to