def leaf
stelliferous@0.0.2.0 · kernel_pipeline.bend:161
import stelliferous@0.0.2.0/kernel_pipeline.bend as KernelPipeline
import Base
import stelliferous@0.0.2.0/kernel_tile.bend as Tile
import stelliferous@0.0.2.0/storage_buffer.bend as Storage
import stelliferous@0.0.2.0/traversal_partition.bend as Partition
import stelliferous@0.0.2.0/kernel_window.bend as KernelWindow
161def leaf(~custom: F32 -> F32,task: Task,offset: U32,span: U32,window: InputWindow,weights: Storage.Buffer<Tile.Tile8>,bias: Storage.Buffer<F32>) -> Outputs():
162 Task{Work{+rows,h,w,k,+s,p,+ow,+positions,inner},activation} = task
163 InputWindow{input,+first,height} = window
164 +offset = offset
165 +count = U32.min(span,(positions - offset : U32))
166 Partition.Leaf{blocked(~custom,activation,Work{rows,height,w,k,s,p,ow,count,inner},KernelWindow.start(offset,s,ow,first),input,weights,bias),offset,count,rows}