//clika-runtime/io.clika.runtime/Ops/binaryCrossEntropy
binaryCrossEntropy
[common]
fun binaryCrossEntropy(input: Tensor, target: Tensor, weight: Tensor? = null, reduction: Reduction = Reduction.MEAN): Tensor
binaryCrossEntropy(input: Tensor, target: Tensor, weight: Tensor? = null, reduction: Reduction = Reduction.MEAN): the binary_cross_entropy operator. Binary cross-entropy on element-wise PROBABILITIES. input must already be probabilities in [0, 1] (apply sigmoid first, or use binary_cross_entropy_with_logits for the fused, numerically safer form). weight re-weights each element's loss.