tvm icon indicating copy to clipboard operation
tvm copied to clipboard

Option to set the step/stride in reduce_axis

Open weitliu opened this issue 9 years ago • 2 comments

@Huyuwei and I found that it may be useful to support step/stride, the distance between two adjacent values, in reduce axis (for dilation). It could help skip step number of elements for the reduce axis, instead of branching.

weitliu avatar Sep 05 '17 05:09 weitliu

Would this be equivalent to (stride =2)

tvm.sum(A[k*2], k=tvm.reduce_axis((0, n/2))

tqchen avatar Sep 05 '17 05:09 tqchen

Yes. It is equivalent to modify the compute in this way. Thank you!

weitliu avatar Sep 05 '17 06:09 weitliu