Skip to main content

ClikaRT::ops::xlogy

function

xlogy()

Tensor xlogy(Tensor a, ScalarOrTensor other)

Elementwise alog(other)a \cdot \log(other) with the 0log(0)=00 \cdot \log(0) = 0 convention. 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 1556