Skip to main content

ClikaRT::ops::circular_pad

function

circular_pad()

Tensor circular_pad(Tensor x, ClikaRT::Span<const ScalarOrTensor> pad)

pad in wrap-around mode: the padding continues from the opposite 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 the extent (code_name() carries the reason).

Returns: a new tensor with each padded axis grown by lo + hi.

Declared in ClikaRT/compute/ops.h, line 3271