Skip to main content

//clika-runtime/io.clika.runtime/Ops/pad

pad

[common]
fun pad(input: Tensor, pad: LongArray, mode: PadMode = PadMode.CONSTANT, value: Tensor? = null): Tensor

pad(input: Tensor, pad: LongArray, mode: PadMode = PadMode.CONSTANT, value: Tensor? = null): the pad operator. Pad each axis by interleaved (lo, hi) pairs in layout order, left-to-right: pair i pads axis i (the first pair is the leading axis). Provide fewer pairs than the rank to pad only the leading axes; a negative width crops that side. mode selects the fill; value is the Constant fill (default 0).