KernelWeights.run: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/kernel_weights.bend as KernelWeights Lines 70-73 of stelliferous@0.0.2.0/kernel_weights.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/kernel_weights.bend&start_line=70&end_line=73 import Base import stelliferous@0.0.2.0/storage_allocation.bend as Allocation import stelliferous@0.0.2.0/traversal_array.bend as Traversal import stelliferous@0.0.2.0/kernel_tile.bend as Tile import stelliferous@0.0.2.0/tensor.bend as Tensors def run(+rows: U32,+inner: U32,input: Array) -> Array: +blocks = ((rows + 7) / 8 : U32) reordered(Traversal.indexed_fold(~(Array & Array),~Layout,~copy_block,U32.to_nat(blocks),0, Layout{rows,inner},(input,Allocation.array(~Tile.Tile8,Tensors.depth_for((blocks * inner : U32)),Tile.filled(0.0))))) Uses (17): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_tile.bend&name=Tile8 https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_tile.bend&name=filled https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_weights.bend&name=Layout https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_weights.bend&name=copy_block https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_weights.bend&name=reordered https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/storage_allocation.bend&name=array https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor.bend&name=depth_for https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/traversal_array.bend&name=indexed_fold