//clika-runtime/io.clika.runtime/Ops/binaryCrossEntropyWithLogits
binaryCrossEntropyWithLogits
[common]
fun binaryCrossEntropyWithLogits(input: Tensor, target: Tensor, weight: Tensor? = null, reduction: Reduction = Reduction.MEAN, posWeight: Tensor? = null): Tensor
binaryCrossEntropyWithLogits(input: Tensor, target: Tensor, weight: Tensor? = null, reduction: Reduction = Reduction.MEAN, posWeight: Tensor? = null): the binary_cross_entropy_with_logits operator. Binary cross-entropy on RAW LOGITS (sigmoid fused, numerically stable). Computes binary_cross_entropy(sigmoid(input), target) in one pass without materializing the probabilities. pos_weight scales the positive-class term per element (class-imbalance correction).