def end_row

stelliferous@0.0.2.0 · kernel_window.bend:14

import stelliferous@0.0.2.0/kernel_window.bend as KernelWindow
import 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)))

Uses (7)

Used by (1)