def read_block_pixel

stelliferous@0.0.2.0 · kernel_spatial_packing.bend:24

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

24def read_block_pixel(input: Array<F32>,context: PixelBlock,index: Nat) -> Array<F32> & F32:
25  PixelBlock{row,column,channel_base,height,width,+stride} = context
26  pixel(input,row,(column + U32.from_nat(index) * stride : U32),channel_base,height,width)

Uses (10)

Used by (3)