ClikaRT::ops::reflect_pad
function
reflect_pad()
Tensor reflect_pad(Tensor x, ClikaRT::Span<const ScalarOrTensor> pad)
pad in mirror mode: the padding reflects the tensor across each padded edge. Same (lo, hi) pair layout as constant_pad. Copies.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) when the pair list exceeds the rank or a width exceeds what the extent can mirror (code_name()carries the reason).
Returns: a new tensor with each padded axis grown by lo + hi.
Declared in ClikaRT/compute/ops.h, line 3259