Skip to main content

ClikaRT::ops::xlogy

function

xlogy()​

Tensor xlogy(Tensor input, ScalarOrTensor other)

Elementwise a⋅log⁡(other)a \cdot \log(other) with the 0⋅log⁡(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 1568