Skip to main content

ClikaRT::ops::remainder

function

remainder()

Tensor remainder(Tensor a, ScalarOrTensor other)

Elementwise remainder with the sign of the DIVISOR, i.e. ops::mod with ModMode::Python. Broadcasts and promotes as add.

Returns: the broadcast-shaped remainders.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible.

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