Last active
August 29, 2023 06:26
-
-
Save Iainmon/4a4aafdab61f86327d8dcef8a0c57fd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc convShape() {} | |
iter regions(dom: domain(2,int), k: int, stride: int) { | |
const (h,w) = convShape(dom.shape,k,stride,padding=0); | |
for (i,j) in {0..#h,0..#w} { | |
yield dom[i * k * stride..#k,j * k * stride..#k]; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment