latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.binary_cross_entropy_with_logits
- tensorplay.nn.functional.binary_cross_entropy_with_logits(input: Tensor, target: Tensor, weight: Tensor | None = None, size_average=None, reduce=None, reduction: str = 'mean', pos_weight: Tensor | None = None) Tensor[source]
Compute Binary Cross Entropy between target and input logits.
optionally rescaled by
weight, then reduced. SeeBCEWithLogitsLossfor details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

