def end_row
import stelliferous@0.0.2.0/kernel_window.bend as KernelWindowimport Base
14def end_row(+height: U32,+kernel: U32,+stride: U32,+padding: U32,+output_row: U32) -> U32:
15 +bottom = (output_row * stride + kernel : U32)
16 Bool.pick(U32,U32.is_le(bottom,padding),0,U32.min(height,(bottom - padding : U32)))