ClikaRT::ops::pad
function
pad()
Tensor pad(
Tensor x,
ClikaRT::Span<const ScalarOrTensor> pad,
PadMode mode = PadMode::Constant,
std::optional<ScalarOrTensor> value = std::nullopt
)
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).
Declared in ClikaRT/compute/ops.h, line 3210