Skip to main content

ClikaRT::ops::maximum

function

maximum()​

Tensor maximum(Tensor input, Tensor other)

Elementwise maximum, NaN-PROPAGATING: a NaN in either operand yields NaN (use ops::fmax for the NaN-ignoring IEEE law). Broadcasts and promotes as add.

Returns: the broadcast-shaped maxima.

Throws

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

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