Skip to main content

ClikaRT::ops::maximum

function

maximum()

Tensor maximum(Tensor a, Tensor b)

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 1438