Skip to main content

ClikaRT::ops::logaddexp2

function

logaddexp2()

Tensor logaddexp2(Tensor a, Tensor b)

Elementwise log2(2a+2b)\log_2(2^a + 2^b), logaddexp in base 2. Broadcasts and promotes as add.

Returns: the broadcast-shaped result at the promoted float dtype.

Throws

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

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