type Sweep
import stelliferous@0.0.2.0/tensor_access.bend as TensorAccessimport Base
148# Window reduction along one axis. step is the number of elements after the
149# axis, the same in the input and the output. Output position p keeps its
150# step offset p % step, lies at coordinate (p / step) % out_extent of the
151# axis, and folds kernel samples in increasing coordinate from pad; a sample
152# outside the axis reads pad. origin is the coordinate at which the window of
153# output coordinate zero starts before padding: zero for a whole axis, the
154# stored row for the rows of a taller image.
155type Sweep is Data:
156 Sweep{extent: U32,step: U32,kernel: U32,stride: U32,padding: U32,out_extent: U32,origin: U32}