def wrap_pixel

stelliferous@0.0.2.0 · kernel_spatial_packing.bend:42

import stelliferous@0.0.2.0/kernel_spatial_packing.bend as KernelSpatialPacking
import Base

42def wrap_pixel(same: Bool,input: Array<F32>,row: U32,column: U32,channel_base: U32,height: U32,width: U32,+stride: U32,next_row: U32,offset: U32,output_width: U32,
43  kernel_column: U32,padding: U32,+lane: U32) -> Array<F32> & F32:
44  match same:
45    case True{}: pixel(input,row,(column + lane * stride : U32),channel_base,height,width)
46    case False{}: pixel(input,next_row,((offset + lane - output_width) * stride + kernel_column - padding : U32),channel_base,height,width)

Uses (9)

Used by (2)