For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
accumulate_wo_tile_1d
def accumulate_wo_tile_1d[micro_kernel_height: Int, micro_kernel_width: Int, simd_size: Int, partial_load_filter: Bool, effected_by_padding: Bool, input_dt: DType, filter_dt: DType](c_tile_size: Int, S: Int, mut acc: _Accumulator, input: Pointer[Scalar[input_dt], address_space=input.address_space, _safe=False], input_stride: Int, input_stride_to_nbr: Int, filter: Pointer[Scalar[filter_dt], address_space=filter.address_space, _safe=False], filter_stride: Int, filter_stride_to_nbr: Int, partial_load_filter_size: Int, w: Int, W: Int, dilation: Int)
Update one row in the output for a given (c, f) tile.
Parameters:
- βmicro_kernel_height (
Int): Number of input points in register tiling. - βmicro_kernel_width (
Int): Number of SIMD resgiters assigned to F. - βsimd_size (
Int): Number of elements in a SIMD register. - βpartial_load_filter (
Bool): Whether using partial load for filter. - βeffected_by_padding (
Bool): Whether the tile is effected by padding. - βinput_dt (
DType): DType of input. - βfilter_dt (
DType): DType of filter.
Args:
- βc_tile_size (
Int): Tile size in input channel. - βS (
Int): Filter window width. - βacc (
_Accumulator): Pointer to register tile accumulator. - βinput (
Pointer[Scalar[input_dt], address_space=input.address_space, _safe=False]): Pointer to the first input point in WO tile. - βinput_stride (
Int): Stride between two input points, i.e., C w/ NHWC layout. - βinput_stride_to_nbr (
Int): Stride between an input point and its neighbor. - βfilter (
Pointer[Scalar[filter_dt], address_space=filter.address_space, _safe=False]): Pointer to the first coef in the filter window. - βfilter_stride (
Int): Stride between two segments of sizemicro_kernel_width * simd_size. - βfilter_stride_to_nbr (
Int): Stride between between two neighbor coefs, i.e., CF w/ RSCF layout. - βpartial_load_filter_size (
Int): Size of partial load for filter. - βw (
Int): Coordinate in an input row. - βW (
Int): Input width. - βdilation (
Int): Convolution dilation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!