Skip to main content

ClikaRT::ops::xlog1py

function

xlog1py()

Tensor xlog1py(Tensor a, ScalarOrTensor other)

Elementwise alog(1+other)a \cdot \log(1 + other) with the 0log(0)=00 \cdot \log(0) = 0 convention (entropy-style sums stay finite where a is zero). 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 1550