def input_transfer
stelliferous@0.0.2.0 · kernel_planning.bend:81
import stelliferous@0.0.2.0/kernel_planning.bend as KernelPlanning
import Base
import stelliferous@0.0.2.0/kernel_window.bend as KernelWindow
81
82
83def input_transfer(copy: Bool,band: KernelWindow.Band,window: InputRows,channels: U32,width: U32) -> Nat:
84 match copy band:
85 case False{} band: clone_bytes(window)
86 case True{} KernelWindow.Band{first,rows}:
87 +count = (channels * rows * width : U32)
88 Nat.mul(4n,Nat.add(U32.to_nat(count),capacity(count)))